What is PowerShell Direct?
Find out what PowerShell is and how to use it?
January 22, 2016
Q. What is PowerShell Direct?
A. PowerShell Direct enables PowerShell interaction between a Windows 10/Windows Server 2016 host and the VMs on that host without any firewall or network requirements nor special remote management configuration. You still require credentials to use within the VM so this is not a way to bypass security. Think of this of a way be able to use PowerShell even when there are problems such as networking misconfigurations that would typically prohibit management.
To use PowerShell Direct leverage the new -VMName parameter for cmdlets such as Invoke-Command and Enter-PSSession. For example:
Enter-PSSession -VMName VM01
Invoke-Command -VMName VM01 -ScriptBlock {}
About the Author
You May Also Like