Managing virtual machines with PowerShell Direct
PowerShell Direct is a new feature that allows you to use PowerShell directly from a Windows 10 or Windows Server 2016 Hyper-V host and virtual-machine guest operating system (specifically, Windows 10 and Windows Server 2016) without having any network configuration or any type of network at all; you don't even need to have a virtual NIC attached to your virtual machine or configure WinRM. You can just use PowerShell directly on your virtual machine from your Hyper-V host operating system.
By leveraging the VMBus architecture of Hyper-V, we are literally bypassing all the requirements for networking, firewall, remote management, and access settings. It's a great feature.
Getting ready
PowerShell Direct requires an account to be a member of the Hyper-V Administrator group on the host side because, if you want to have access to your virtual machines in the first place, you need to be a Hyper-V admin; if you are able to run Get-VM
on the host, you...