⑴(set "=%~f"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:)) & exit/b
⑵#:: double-click to run or just copy-paste into powershell - it's a standalone hybrid script
⑶#:: v of the toggle script works perfectly fine for most people with a non-botched windows installation
⑷#:: uses a fast, fileless wmi subscription to watch for the Virtual Disk Service Loader process running during setup,
⑸#:: then launches a cmd erase of appraiserres.dll - that's all there is to it, no rocket science, just a great implementation
⑹#:: you probably don't need to have it installed at all times - just when doing feature updates or manual setup within windows
⑺#:: hence the on off toggle just by running the script again
⑻$_Paste_in_Powershell = {
⑼$N = 'Skip TPM Check on Dynamic Update'; $off = $false
⑽$ = sp 'HKLM:SYSTEMSetupMoSetup' 'AllowUpgradesWithUnsupportedTPMOrCPU' -type dword -force -ea
⑾$ = ri 'HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionImage File Execution Optionsvdsldr.exe' -force -ea
⑿$ = sc.exe config Winmgmt start= demand; sp HKLM:SOFTWAREMicrosoftWbem 'Enable Costly Providers' -type dword -force -ea
⒀$B = gwmi -Class __FilterToConsumerBinding -Namespace 'rootsubscription' -Filter "Filter = ""__eventfilter.name='$N'""" -ea
⒁$C = gwmi -Class mandLineEventConsumer -Namespace 'rootsubscription' -Filter "Name='$N'" -ea
⒂$F = gwmi -Class __EventFilter -NameSpace 'rootsubscription' -Filter "Name='$N'" -ea
⒃if ($B) { $B | rwmi; $off = $true } ; if ($C) { $C | rwmi; $off = $true } ; if ($F) { $F | rwmi; $off = $true }
⒄if ($off) { write-host -fore xf -back xd "`n $N [REMOVED] run again to install "; timeout /t ; return }
⒅$P = "$([environment]::SystemDirectory)cmd.exe"; $T = "$P /q $N (c) AveYo, /d /rerase appraiserres.dll /f /s /q"
⒆$D = "$($P[]):`$WINDOWS.~BT"; $Q = "SELECT SessionID from Win_ProcessStartTrace WHERE ProcessName='vdsldr.exe'"
⒇$F = swmi -Class __EventFilter -NameSpace 'rootsubscription' -args {
⒈Name = $N; EventNameSpace = 'rootcimv'; QueryLanguage = 'WQL'; Query = $Q} -PutType -ea
⒉$C = swmi -Class mandLineEventConsumer -Namespace 'rootsubscription' -args {
⒊Name = $N; WorkingDirectory = $D; ExecutablePath = $P; mandLiemplate = $T; Priority = } -PutType -ea
⒋$B = swmi -Class __FilterToConsumerBinding -Namespace 'rootsubscription' -args {Filter=$F;Consumer=$C} -PutType -ea
⒌write-host -fore xf -back x "`n $N [INSTALLED] run again to remove "; timeout /t
⒍} ; start -verb runas powershell -args "-nop -c & {`n`n$($_Paste_in_Powershell-replace'"','"')}"
⒎$_Press_Enter