Using PowerShell Direct
PowerShell Direct is a Hyper-V feature that enables you to open PowerShell remoting sessions on a VM without using a network connection. This feature enables you to create a remoting session inside the VM to fix issues, such as networking misconfiguration. An administrator might be commissioning a new host and configure its host IP address nearly correctly, meaning a network connectivity Catch-22 situation. Without a working network connection to the VM, you can't fix the issue – but until you fix the issue, you cannot make a connection to the VM. With PS Direct, you can create a remoting session in the VM, as you see in this recipe.
Getting ready
This recipe uses HV1
, a Windows Server Datacenter host on which you have installed the Hyper-V feature. You should have also created a VM of Windows Server called PSDirect
. You should ensure that the PSDirect
VM is running. This recipe demonstrates PowerShell Direct, so it doesn't matter which...