what are the powershell command to install and configure windows server for hyper? i cant figure out how to assign the drive letter z: for install using powershell only.
how would i do the install for server throught powershell
You can install Hyper-V using the following PowerShell command...
Install-WindowsFeature -Name Hyper-V -ComputerName HOSTNAME -IncludeManagementTools -Restart
What are you assigning to Z:? If you are trying to change the default file locations for Hyper-V (VM storage and VHD storage locations) you can use the following PowerShell commands, after you have installed Hyper-V...
Make sure the directories you plan to use are already created...
SET-VMHOST –computername <server> –virtualharddiskpath ‘Z:\VHDs' SET-VMHOST –computername <server> –virtualmachinepath ‘Z:\VMs’
So using PowerShell, you would first install the Hyper-V role, then you would configure the role.