What is PowerShell Direct?

What is PowerShell Direct?

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 {<code to run>}

Hide 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.