Advertisement
aveyo

undo_disable_fullscreen_optimizations

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