# 前言

众所周知,Windows11 后老机型各种限制,尤其是 TPM 模块,那么我们如何关闭 TPM2.0 的检测呢?今天给大家带来 TPM2.0 一键关闭命令。

尤其是之前通过 pe 偷渡的朋友,随着 Windows11 22H2 的发布,想升级但有限制,又要格式化磁盘或者替换文件?

大可不必!绕过 TPM2.0 很简单!

# 命令方案【推荐】

请在桌面或者其他地方新建一个文本文档,复制以下命令,粘贴进去后保存,后缀名为: .bat 然后右键以管理员身份执行一遍即可,执行完毕后即可直接打开 ISO 里面的 setup.exe 覆盖升级!

@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit/b
    #:: double-click to run or just copy-paste into powershell - it's a standalone hybrid script
    #:: v2 using ifeo instead of wmi - increased compatibility at the cost of showing a cmd briefly on diskmgmt
    $_Paste_in_Powershell = {
      $N = 'Skip TPM Check on Dynamic Update'
      $B = gwmi -Class __FilterToConsumerBinding -Namespace 'root\subscription' -Filter "Filter = ""__eventfilter.name='$N'""" -ea 0
      $C = gwmi -Class CommandLineEventConsumer -Namespace 'root\subscription' -Filter "Name='$N'" -ea 0
      $F = gwmi -Class __EventFilter -NameSpace 'root\subscription' -Filter "Name='$N'" -ea 0
      if ($B) { $B | rwmi } ; if ($C) { $C | rwmi } ; if ($F) { $F | rwmi }
      $C = "cmd /q $N (c) AveYo, 2021 /d/x/r>nul (erase /f/s/q %systemdrive%\`$windows.~bt\appraiserres.dll"
      $C+= '&md 11&cd 11&ren vd.exe vdsldr.exe&robocopy "../" "./" "vdsldr.exe"&ren vdsldr.exe vd.exe&start vd -Embedding)&rem;'
      $K = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vdsldr.exe'
      if (test-path $K) {ri $K -force -ea 0; write-host -fore 0xf -back 0xd "`n $N [REMOVED] run again to install "; timeout /t 5}      else {$0=ni $K; sp $K Debugger $C -force; write-host -fore 0xf -back 0x2 "`n $N [INSTALLED] run again to remove ";timeout /t 5}
      $0 = sp HKLM:\SYSTEM\Setup\MoSetup 'AllowUpgradesWithUnsupportedTPMOrCPU' 1 -type dword -force -ea 0
    } ; start -verb runas powershell -args "-nop -c & {`n`n$($_Paste_in_Powershell-replace'"','\"')}"

# 其他方案

绕过硬件检测那些 较为推荐 -- 知彼而知己写的脚本点击直达

如果你有更好的方法欢迎留言共享!

更新于

请我喝[茶]~( ̄▽ ̄)~*

叶玖洛-星尘 微信支付

微信支付

叶玖洛-星尘 支付宝

支付宝

叶玖洛-星尘 QQ

QQ