136

VMware を開こうとすると、VMware プレーヤーと Hyper-V に互換性がないと表示されます。ここで見つけましたが、提供されているコマンドを使用しても機能しません。

ヘルプを見ようとしたところ、そこに/hypervisorsettingsオプションがあることがわかりました。しかし、まだそれで動作しない、とそれは言いThe parameter is incorrectます.

誰でもこれを手伝ってもらえますか?

4

10 に答える 10

319

昇格したコマンド プロンプトで、次のように記述します 。

無効にするには:

bcdedit /set hypervisorlaunchtype off

有効にする:

bcdedit /set hypervisorlaunchtype auto 

(コメントから - 再起動して有効にする)

于 2016-03-05T10:26:51.073 に答える
31

このコマンドは動作します

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

それを実行し、プロンプトが表示されたらコンピューターを再起動することに同意します。

Windows 10 で昇格されたアクセス許可の PowerShell で実行しましたが、Win 8 または 7 でも動作するはずです。

于 2016-05-10T15:59:41.993 に答える
19

コマンドライン:

dism /online /disable-feature /featurename:microsoft-hyper-v-all

誰かが得ている場合:

更新を完了できませんでした。変更を元に戻しています

Hyper-V を無効にしようとした後、[デバイス マネージャー] -> [ネットワーク アダプター] から Hyper-V 仮想ネットワーク アダプターをアンインストールしてみてください。

于 2016-09-23T11:28:36.370 に答える
2

管理者としてコマンド プロンプトを開き、次のように記述します。

bcdedit /set hypervisorlaunchtype off
于 2020-01-11T16:42:40.203 に答える
0

私のスクリプトを使用できます。コード行をメモ帳に貼り付け、vbs として保存します (たとえば、switch_hypervisor.vbs)。

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
于 2017-07-18T09:14:42.413 に答える