This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tpmCheck = Get-Tpm | |
$isTpmOn = $tpmCheck."TpmActivated" | |
Write-Host "Is TPM activated on this machine?" | |
$isTpmOn = [bool]$isTpmOn | |
if (($isTpmOn) -eq $true) { | |
Write-Host "Yes, TPM is activated." -ForegroundColor Green | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls | |
mkdir %HOMEDRIVE%\stopWin11\ | |
cd %HOMEDRIVE%\stopWin11\ | |
echo Windows Registry Editor Version 5.00 > win11-stop-update.reg | |
echo. >> win11-stop-update.reg | |
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] >> win11-stop-update.reg | |
echo "ProductVersion"="Windows 10" >> win11-stop-update.reg | |
echo "TargetReleaseVersion"=dword:00000001 >> win11-stop-update.reg | |
echo "TargetReleaseVersionInfo"="26H2" >> win11-stop-update.reg |