One of the new features of Windows Server 2016 that will be helpful to system administrators is PowerShell Direct. PowerShell Direct allows you to run PowerShell commands directly on a virtual machine from a Windows10/Windows Server 2016 host server. You can even use PowerShell commands when there are networking issues that would normally prevent remote management of the VM’s. Valid credentials for the VM are required, and you can also disable this feature on VM’s that may be managed by someone other than the host administrator. Simply create a session to the VM with the Enter-PSSession command and the new -VMName parameter.
Automated scripts can also be used with the Invoke-Command cmdlet. This makes it easier for Windows Hyper-V administrators to automate creation, configuration, and management of virtual machines. There are just a few requirements to keep in mind:
- The virtual machine must be running locally on the host and booted.
- You must be logged into the host computer as a Hyper-V administrator.
- You must supply valid user credentials for the virtual machine.
- The host operating system must run Windows 10, Windows Server 2016 Technical Preview, or higher version.
- The virtual machine must run Windows 10, Windows Server 2016 Technical Preview, or higher version.