2016-08-05 228 views
0

我试过这个命令:如何使用Windows PowerShell启用Hyper-V?

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All 

但是,它会给我这样的反馈消息:

'Enable-WindowsOptionalFeature' is not recognized as an internal or external command, 
operable program or batch file. 
+0

使用此作为帮助:http://stackoverflow.com/questions/16859979/windows-8-powershell-enable-windowsoptionalfeature-bat-file –

回答

1

尝试DISM来代替:
DISM /在线/启用特征/全部/ FeatureName:微软-Hyper-V

查看更多安装信息here

+0

谢谢,莎拉。只有解决方案,为我工作。 99%的其他解决方案要求您在BIOS中打开它或在“打开/关闭Windows功能”中打开,但在Powershell中运行此命令是唯一启用了hyper-v的功能。 – ShrimpCrackers