Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @title AppCompatFlags - UNDO Disable Fullscreen Optimizations - AveYo - v2018.10.27
- @echo off
- set "MYSELF_OR_ALLUSERS=MYSELF"
- rem set "MYSELF_OR_ALLUSERS=ALLUSERS"
- color 17 & echo. & set _ADMIN=1 & reg query "HKEY_USERS\S-1-5-20\Environment" /v TEMP >nul 2>nul || (
- color 1c & echo PERMISSION DENIED! Should right-click script ^& Run as administrator & timeout /t 5 >nul
- color 1e & echo. & set "_ADMIN=" & set "MYSELF_OR_ALLUSERS=MYSELF" )
- if /i "%MYSELF_OR_ALLUSERS:ALLUSERS=%" equ "%MYSELF_OR_ALLUSERS%" (set "HKLM=") else set "HKLM=HKLM"
- for %%i in (HKCU %HKLM%) do reg delete "%%i\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /f
- echo.
- echo Done!
- timeout /t -1
- exit/b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement