powershell - Install hyperv cmdlet on workstation -
i have script starts new hyperv vm's on remote server using powershell
new-vm get-vm i want run script on desktop, following error.
term 'new-vm' not recognized name of cmdlet i can't figure out how install new-vm cmdlet on workstation
get-windowsfeature target of specified cmdlet cannot windows client-based operating system install-windowsfeature hyperv- target of specified cmdlet cannot windows client-based operating system i new powershell, , don't windows.
how can install cmdlet new-vm on windows 8 machine?
update
also tried following.
enable-windowsoptionalfeature -online -featurename hyper-v-tools enable-windowsoptionalfeature -online -featurename hyper-v-powershell i see hyperv tools in following command
get-windowsoptionalfeature -online | sort state microsoft-hyper-v microsoft-hyper-v-tools-all microsoft-hyper-v-management-powershell update 2
i got installed, gives error:
ps c:\windows\system32> enable-windowsoptionalfeature -online -featurename microsoft-hyper-v-management-powershell enable-windowsoptionalfeature : 1 or several parent features disabled current feature can not enabled. @ line:1 char:1 + enable-windowsoptionalfeature -online -featurename microsoft-hyper-v-management- ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : notspecified: (:) [enable-windowsoptionalfeature], comexception + fullyqualifiederrorid : microsoft.dism.commands.enablewindowsoptionalfeaturecommand ps c:\windows\system32>
got installed. powershell cmdlet has parents can installed adding -all.
enable-windowsoptionalfeature -online -featurename microsoft-hyper-v-management-powershell -all you need reboot before cmdlet available.
Comments
Post a Comment