Skip navigation
Understand what PowerShell Direct is with Hyper-V

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 <VM>

or run specific commands using:

Invoke-Command -VMName <VM> -ScriptBlock { commands to run }

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish