当前位置: 代码迷 >> 综合 >> 在 Windows 10上运行的 VMware Workstation 报错 “VMware Workstation 和 Device/Credential Guard 不兼容”(官方脚本解决版)
  详细解决方案

在 Windows 10上运行的 VMware Workstation 报错 “VMware Workstation 和 Device/Credential Guard 不兼容”(官方脚本解决版)

热度:10   发布时间:2024-01-10 14:37:59.0

参考:
链接1
链接2
链接3
链接4
链接5

目录

  • 获得脚本
  • 打开powershell
  • 增加权限
  • 运行脚本
  • 脚本内容

原因是Win10的Device Guard 或 Credential Guard 与VMware Workstation 不兼容,所以要禁用 Credential Guard 或 Device Guard 。

获得脚本

两张方式获得:

  1. 下载脚本

  2. 自己创建,新建个txt文件,复制文章后面脚本内容到txt文件里,保存,然后修改名字为DG_Readiness_Tool_v3.6.ps1

打开powershell

右键左下角win图标或者按快捷键Win+X,点击Windows PowerShell(管理员),假如不是Windows PowerShell而是命令行提示符,右键任务栏,任务栏设置,找到当我右键单击"开始’按钮或按下Windows键+X时,在菜单中将命令提示符替换为Windows PowerShell,打勾
PS:要选管理员的

增加权限

  1. 运行命令set-executionpolicy remotesigned
  2. 运行命令set-executionpoliy-executionpolicy unrestricted

运行脚本

  1. cd到上面脚本存放的目录
  2. 运行命令.\DG_Readiness_Tool_v3.6.ps1 -Disable -AutoReboot
  3. 静静等待,会提示一分钟后重启,
  4. 重启后,会让选择,按Win键就行,等系统自动重启后,就ok了。

脚本内容

# Script to find out if machine is Device Guard compliant
# requires driver verifier on system.
param([switch]$Capable, [switch]$Ready, [switch]$Enable, [switch]$Disable, $SIPolicyPath, [switch]$AutoReboot, [switch]$DG, [switch]$CG, [switch]$HVCI, [switch]$HLK, [switch]$Clear, [switch]$ResetVerifier)$path = "C:\DGLogs\" $LogFile = $path + "DeviceGuardCheckLog.txt"$CompatibleModules = New-Object System.Text.StringBuilder $FailingModules = New-Object System.Text.StringBuilder $FailingExecuteWriteCheck = New-Object System.Text.StringBuilder$DGVerifyCrit = New-Object System.Text.StringBuilder $DGVerifyWarn = New-Object System.Text.StringBuilder $DGVerifySuccess = New-Object System.Text.StringBuilder$Sys32Path = "$env:windir\system32" $DriverPath = "$env:windir\system32\drivers"#generated by certutil -encode $SIPolicy_Encoded = "BQAAAA43RKLJRAZMtVH2AW5WMHbk9wcuTBkgTbfJb0SmxaI0BACNkAgAAAAAAAAA
HQAAAAIAAAAAAAAAAAAKAEAAAAAMAAAAAQorBgEEAYI3CgMGDAAAAAEKKwYBBAGC
NwoDBQwAAAABCisGAQQBgjc9BAEMAAAAAQorBgEEAYI3PQUBDAAAAAEKKwYBBAGC
NwoDFQwAAAABCisGAQQBgjdMAwEMAAAAAQorBgEEAYI3TAUBDAAAAAEKKwYBBAGC
N0wLAQEAAAAGAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AQAAAAYAAAABAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAA
BgAAAAEAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAGAAAA
AQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAUAAAABAAAA
AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAEAAAABAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAGAAAAAQAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAYAAAABAAAAAgAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAABAAAABgAAAAEAAAADAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAEAAAAGAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAQAAAAUAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAABAAAADgAAAAEAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="function Log($message) {$message | Out-File $LogFile -Append -Force }function LogAndConsole($message) {Write-Host $messageLog $message }function LogAndConsoleWarning($message) {Write-Host $message -foregroundcolor "Yellow"Log $message }function LogAndConsoleSuccess($message) {Write-Host $message -foregroundcolor "Green"Log $message }function LogAndConsoleError($message) {Write-Host $message -foregroundcolor "Red" Log $message }function IsExempted([System.IO.FileInfo] $item) {$cert = (Get-AuthenticodeSignature $item.FullName).SignerCertificateif($cert.ToString().Contains("CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US")){Log $item.FullName + "MS Exempted"return 1}else{Log $item.FullName + "Not-exempted"Log $cert.ToString()return 0} } function CheckExemption($_ModName) {$mod1 = Get-ChildItem $Sys32Path $_ModName$mod2 = Get-ChildItem $DriverPath $_ModNameif($mod1){ Log "NonDriver module" + $mod1.FullNamereturn IsExempted($mod1) }elseif($mod2){Log "Driver Module
  相关解决方案