Skip to content

Instantly share code, notes, and snippets.

@teoseller
teoseller / fresh_win.bat
Created January 24, 2017 10:13 — forked from vans163/fresh_win.bat
fresh windows install
REM Disable UAC
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /f /v "EnableLUA" /t REG_DWORD /d 0
REM Disable Auto Reboot for Windows Update
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "NoAutoRebootWithLoggedOnUsers" /t REG_DWORD /d 1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "NoAUAsDefaultShutdownOption" /t REG_DWORD /d 1
REM Device Manager show all devices
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v "DEVMGR_SHOW_NONPRESENT_DEVICES" /t REG_DWORD /d 1