我想打开VMware,但它显示VMware Player和Hyper-V不兼容。我在这里找到了解决方法,但使用它所提供的命令没有起作用。
我尝试查看帮助,发现有一个/hypervisorsettings
选项。但是即使使用它,仍然无法正常工作,显示“参数不正确”。
有人能帮忙吗?
我想打开VMware,但它显示VMware Player和Hyper-V不兼容。我在这里找到了解决方法,但使用它所提供的命令没有起作用。
我尝试查看帮助,发现有一个/hypervisorsettings
选项。但是即使使用它,仍然无法正常工作,显示“参数不正确”。
有人能帮忙吗?
在提升的命令提示符中写入以下内容:
要禁用:
bcdedit /set hypervisorlaunchtype off
启用:
bcdedit /set hypervisorlaunchtype auto
重新启动以生效。
您可以在管理员提示符下执行以下操作,配置带有或不带有Hyper-V的Windows 10:
bcdedit /copy {current} /d "Windows 10 no Hyper-V"
查找刚创建的“Windows 10无Hyper-V”启动项的新ID。
要查找新ID,请键入“bcdedit”,然后在添加的引导加载程序配置中查找标识符{XXX}
。例如:{094a0b01-3350-11e7-99e1-bc5ec82bc470}
bcdedit /set {094a0b01-3350-11e7-99e1-bc5ec82bc470} hypervisorlaunchtype Off
重新启动后,您可以在启动时选择使用或不使用Hyper-V的Windows 10
{current}
和 {GUID}
放在 " "
中,例如:"{current}"
。 - Nicke Manarin这个命令有效。
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
在提示时运行它,然后同意重新启动计算机。
我使用Windows 10上的提升权限PowerShell运行它,但它也应该适用于Win 8或7。
命令行:
dism /online /disable-feature /featurename:microsoft-hyper-v-all
如果有人在尝试禁用 Hyper-V 后遇到以下情况:
我们无法完成更新,正在撤消更改
请尝试从设备管理器 -> 网络适配器中卸载 Hyper-V 虚拟网络适配器。
以管理员身份打开命令提示符并运行以下命令:
bcdedit /set {current} hypervisorlaunchtype off
重新启动计算机后,Hyper-V仍然安装在计算机上,但是虚拟机管理程序已经停止运行。现在您可以无障碍地使用VMware。
如果您需要再次使用Hyper-V,请以管理员身份打开命令提示符并运行以下命令:
bcdedit /set {current} hypervisorlaunchtype auto
bcdedit /set {current} ...
和 bcdedit /set ...
有什么区别/优势吗? - mwfearnley以管理员身份打开命令提示符并输入:
bcdedit /set hypervisorlaunchtype off
楼主的答案对我来说是最好的,而且其他人似乎也已经理解了-All的添加方式。我设置了两个批处理文件,然后创建了这些文件的快捷方式,这样你就可以在它们上面设置“以管理员身份运行”的权限,非常简单。
批处理关闭
Call dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All
批处理开启
Call dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
右键单击 -> 创建桌面快捷方式。 右键单击快捷方式 -> 属性 -> 在快捷方式选项卡下 -> 高级 -> 以管理员身份运行
Option Explicit
Dim backupfile
Dim record
Dim myshell
Dim appmyshell
Dim myresult
Dim myline
Dim makeactive
Dim makepassive
Dim reboot
record=""
Set myshell = WScript.CreateObject("WScript.Shell")
If WScript.Arguments.Length = 0 Then
Set appmyshell = CreateObject("Shell.Application")
appmyshell.ShellExecute "wscript.exe", """" & WScript.ScriptFullName & """ RunAsAdministrator", , "runas", 1
WScript.Quit
End if
Set backupfile = CreateObject("Scripting.FileSystemObject")
If Not (backupfile.FileExists("C:\bcdedit.bak")) Then
Set myresult = myshell.Exec("cmd /c bcdedit /export c:\bcdedit.bak")
End If
Set myresult = myshell.Exec("cmd /c bcdedit")
Do While Not myresult.StdOut.AtEndOfStream
myline = myresult.StdOut.ReadLine()
If myline="The boot configuration data store could not be opened." Then
record=""
exit do
End If
If Instr(myline, "identifier") > 0 Then
record=""
If Instr(myline, "{current}") > 0 Then
record="current"
End If
End If
If Instr(myline, "hypervisorlaunchtype") > 0 And record = "current" Then
If Instr(myline, "Auto") > 0 Then
record="1"
Exit Do
End If
If Instr(myline, "On") > 0 Then
record="1"
Exit Do
End If
If Instr(myline, "Off") > 0 Then
record="0"
Exit Do
End If
End If
Loop
If record="1" Then
makepassive = MsgBox ("Hypervisor status is active, do you want set to passive? ", vbYesNo, "Hypervisor")
Select Case makepassive
Case vbYes
myshell.run "cmd.exe /C bcdedit /set hypervisorlaunchtype off"
reboot = MsgBox ("Hypervisor chenged to passive; Computer must reboot. Reboot now? ", vbYesNo, "Hypervisor")
Select Case reboot
Case vbYes
myshell.run "cmd.exe /C shutdown /r /t 0"
End Select
Case vbNo
MsgBox("Not Changed")
End Select
End If
If record="0" Then
makeactive = MsgBox ("Hypervisor status is passive, do you want set active? ", vbYesNo, "Hypervisor")
Select Case makeactive
Case vbYes
myshell.run "cmd.exe /C bcdedit /set hypervisorlaunchtype auto"
reboot = MsgBox ("Hypervisor changed to active; Computer must reboot. Reboot now?", vbYesNo, "Hypervisor")
Select Case reboot
Case vbYes
myshell.run "cmd.exe /C shutdown /r /t 0"
End Select
Case vbNo
MsgBox("Not Changed")
End Select
End If
If record="" Then
MsgBox("Error: record can't find")
End If
我是用以下方法解决的:
1. bcdedit /set hypervisorlaunchtype off
结果 [失败!]
2. bcdedit /set {872da645-4a9b-1727-bee2-5585105b9eed} hypervisorlaunchtype Off
结果 [失败!]
3. 禁用-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
结果 [失败!]
错误在于我没有以管理员身份登录命令提示符,因此以上所有步骤都[失败!]
应该是这样的:
4. 单击以管理员身份运行
5. 输入cmd bcdedit /set hypervisorlaunchtype off
然后看到已经 [成功√]
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
和dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
,但仍然不知道bcdedit
如何工作。 - Sky