Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @REM Windows 8
- @REM This script disables "Accessibility" features.
- @REM Run this with Elevated Administrator privileges
- @REM Why?
- @REM My cat loves sleeping on locked notebooks keyboard at night.
- @REM Sometimes it enables narrator, and it begins to talk at midnight. It can wake me up, and it is very annoying.
- @echo off
- %windir%\system32\takeown.exe /F %windir%\system32\utilman.exe /A
- %windir%\system32\icacls.exe %windir%\system32\utilman.exe /inheritance:r
- %windir%\system32\icacls.exe %windir%\system32\utilman.exe /remove:g *S-1-5-18
- %windir%\system32\icacls.exe %windir%\system32\utilman.exe /remove:g *S-1-5-32-545
- %windir%\system32\icacls.exe %windir%\system32\utilman.exe /grant *S-1-5-32-544:F
- %windir%\system32\icacls.exe %windir%\system32\utilman.exe /setowner *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
- %windir%\system32\icacls.exe %windir%\system32\utilman.exe /remove:g *S-1-5-32-544
- if exist %windir%\syswow64 (
- %windir%\syswow64\takeown.exe /F %windir%\syswow64\utilman.exe /A
- %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /inheritance:r
- %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /remove:g *S-1-5-18
- %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /remove:g *S-1-5-32-545
- %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /grant *S-1-5-32-544:F
- %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /setowner *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
- %windir%\syswow64\icacls.exe %windir%\syswow64\utilman.exe /remove:g *S-1-5-32-544
- )
- pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement