Microsoft Windows PowerShell Direct is a feature in Windows Server 2016 and Windows 10 that enables an administrator to use PowerShell cmdlets and scripts inside a virtual machine (VM) from the Hyper-V host, even if the VM is not connected to the network.
PowerShell Direct allows an administrator to automate tasks in VMs without needing to log on to the guest OS using the GUI. PowerShell Direct works regardless of network configuration or remote management settings and only requires a guest credential for the VM. PowerShell Direct provides an admin with the same scripting and automation experience as remote PowerShell without the configuration experience of the Hyper-V Virtual Machine Connection Tool, also known as VMConnect.Content Continues Below
To run PowerShell Direct, the host operating system and VM must run Windows 10 or Windows Server 2016, or a higher version. PowerShell Direct can be used as an interactive session by using the PSSession cmdlets or by using the Invoke-Command cmdlet.