Created
August 21, 2015 11:44
-
-
Save JBlond/ace499189daefa43c754 to your computer and use it in GitHub Desktop.
Windows 10 registry hack
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
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\UpgradeExperienceIndicators" /v UpgEx | findstr UpgEx | |
if "%errorlevel%" == "0" GOTO RunGWX | |
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Appraiser" /v UtcOnetimeSend /t REG_DWORD /d 1 /f | |
schtasks /run /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" | |
:CompatCheckRunning | |
schtasks /query /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" | |
Powershell -Command "Get-ScheduledTask -TaskName 'Microsoft Compatibility Appraiser' -TaskPath '\Microsoft\Windows\Application Experience\'" | Find "Ready" | |
if NOT "%errorlevel%" == "0" ping localhost >nul &goto :CompatCheckRunning | |
:RunGWX | |
schtasks /run /TN "\Microsoft\Windows\Setup\gwx\refreshgwxconfig" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment