Understand what PowerShell Direct is with Hyper-V

Use PowerShell Direct to easily interact with VMs on a Hyper-V 2016 host

John Savill

December 12, 2015

1 Min Read
Understand what PowerShell Direct is with Hyper-V

Q. What is PowerShell Direct?

A. PowerShell Direct is new in Windows 10 and Windows Server 2016. It enables PowerShell to be executed from a Hyper-V host directly into a VM running on that host. The OS inside the VM must be running Windows 10 or Windows Server 2016 and the host must be Windows 10 or Windows Server 2016. You must be an administrator on the host and need credentials for the VM. To use either create a session to the VM using:

Enter-PSSession -VMName 

or run specific commands using:

Invoke-Command -VMName  -ScriptBlock { commands to run }

 

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like