Skip to content

Instantly share code, notes, and snippets.

@nztim
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nztim/6dd965bdc46e8358cfda to your computer and use it in GitHub Desktop.
Save nztim/6dd965bdc46e8358cfda to your computer and use it in GitHub Desktop.
# Disable hibernation
powercfg.exe /h off
# Disable USB storage
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\UsbStor /v Start /t REG_DWORD /d 4 /f
# Allow admin shares
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment