cacls {dir} /E /G BUILTIN\Users:F
For more details see here
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\desktop]
"HungAppTimeout"="5000"
"WaitToKillAppTimeout"="4000"
"AutoEndTasks"="1"
"MenuShowDelay"="100"
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"HungAppTimeout"="5000"
"WaitToKillAppTimeout"="4000"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\]
"WaitToKillServiceTimeout"="4000"
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000001
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
"AutoRun"=dword:00000000