本期分享一個能在Win10 21H1或21H2環(huán)境下,繞過TPM直接安裝的Win11系統(tǒng)的插件,安全簡單,從此告別需要TPM才能安裝Win11系統(tǒng)的限制,并且也能正常完成更新,有需要的用戶趕快來獲取吧。
將代碼內(nèi)容復(fù)制到文本編輯器中,然后另存為cmd文件,以管理員身份運行即可。
@(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
$_Paste_in_Powershell = { $:code;
$N = ’Skip TPM Check on Dynamic Update‘; $toggle = $null -eq $env:skip_tpm_enabled; $off=$false
$M = sp HKLM:\SYSTEM\Setup\MoSetup ’AllowUpgradeswithUnsupportedTPMOrCPU‘ 1 -type dword -force -ea 0
$M = sc.exe config Winmgnt start= demand; sp HKLM:\SOFTWARE\Microsoft\Wbem ’Enable Costly Providers‘ 0 -type dword -force -ea 0
$B = gwmi -Class __FilterToConsumerBinding -NameSpace ’root\subscription‘ -Filter “Filter = ”“__eventfilter.name=’SN‘”“” -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 -or $C -or $F) { $B | rwmi; $C | rwmi; $F | rwmi; $off = $true }
if ($toggle -and $off) { write-host -fore 0xf -back 0xd “`n $N [REMOVED] run again to install ”; timeout /t 5; return }
$P = “$([environment]::SystenDirectory)\cmd.exe”; $T = “SP /q $N (c) AveYo, 2021 /d /rerase appraiserres.dll /f /s /q”
$D = “$($P[0]):\’$WINDOWS.~BT”; $Q = “SELECT SessionID from Win32_ProcessStartTrace WHERE ProcessName=‘vdsldr.exe’”
$F = swmi -Class __EventFilter -NameSpace ‘root\subscription’ -args @{
Name = $N; EventNameSpace = ‘root\cimv2’; QueryLanguage = ‘WQL’; Query = $Q} -PutType 2 -ea 0
$C = swmi -Class CommandLineEventConsumer -Namespace ‘root\subscription’ -args @{
Name = $N; WorkingDirectory = $D; ExecutablePath = $P; ComnandLineTemplate = $T; Priority = 128} -PutType 2 -ea 0
$B = swmi -Class __FilterToConsumerBinding -Namespace ‘root\subscription’ -args @{Filter=$F;Consumer=$C} -PutType 2 -ea 0
if ($toggle) { write-host -fore 0xf -back 0x2 “`n $N [INSTALLED] run again to remove ”; timeout /t 5 } ; $:code;
} ; start -verb runas powershell -args “-nop -c & {`n`n$($_Paste_in_Powershell-replace‘”’,‘\“’)}”
$_Press_Enter