Advertisement
filimonic

Untitled

Oct 27th, 2013
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @REM Windows 8
  2. @REM This script disables "Accessibility" features.
  3. @REM Run this with Elevated Administrator privileges
  4.  
  5. @REM Why?
  6. @REM My cat loves sleeping on locked notebooks keyboard at night.
  7. @REM Sometimes it enables narrator, and it begins to talk at midnight. It can wake me up, and it is very annoying.
  8.  
  9. @echo off
  10. %windir%\system32\takeown.exe /F %windir%\system32\utilman.exe /A
  11. %windir%\system32\icacls.exe %windir%\system32\utilman.exe /inheritance:r
  12. %windir%\system32\icacls.exe %windir%\system32\utilman.exe /remove:g *S-1-5-18
  13. %windir%\system32\icacls.exe %windir%\system32\utilman.exe /remove:g *S-1-5-32-545
  14. %windir%\system32\icacls.exe %windir%\system32\utilman.exe /grant *S-1-5-32-544:F
  15. %windir%\system32\icacls.exe %windir%\system32\utilman.exe /setowner *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
  16. %windir%\system32\icacls.exe %windir%\system32\utilman.exe /remove:g *S-1-5-32-544
  17. if exist %windir%\syswow64 (
  18. %windir%\syswow64\takeown.exe /F %windir%\syswow64\utilman.exe /A
  19. %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /inheritance:r
  20. %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /remove:g *S-1-5-18
  21. %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /remove:g *S-1-5-32-545
  22. %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /grant *S-1-5-32-544:F
  23. %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /setowner *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
  24. %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /remove:g *S-1-5-32-544
  25. )
  26. pause
  27. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement