Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
REM Show known file extenions
reg add "HKLM\software\microsoft\windows\CurrentVersion\explorer\advanced\folder\hidefileext" /f /v "DefaultValue" /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "HideFileExt" /t REG_DWORD /d 0
REM NTFS, Disable 8.3 names and Last Access (speeds up disk access)
reg add "HKCU\SYSTEM\CurrentControlSet\Control\FileSystem" /f /v "NtfsDisable8dot3NameCreation" /t REG_DWORD /d 1
reg add "HKCU\SYSTEM\CurrentControlSet\Control\FileSystem" /f /v "NtfsDisableLastAccessUpdate" /t REG_DWORD /d 1
REM Disable Low Disk Space Checks
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /f /v "fAllowToGetHelp" /t REG_DWORD /d 0
REM Disable Snooping Activities
reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences\HME" /f /v "DisableDiscovery" /t REG_DWORD /d 1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /f /v "EnableActiveProbing" /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v "NoDriveTypeAutoRun" /t REG_DWORD /d FF
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v "NoSharedDocuments" /t REG_DWORD /d 1
reg add "HKLM\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters" /f /v "DisabledComponents" /t REG_DWORD /d 8
REM Disable Libraries
reg delete HKCR\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{031E4825-7B94-4dc3-B131-E946B44C8DD5} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{2112AB0A-C86A-4ffe-A368-0DE96E47012E} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{491E922F-5643-4af4-A7EB-4E7A138D8174} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7b0db17d-9cd2-4a93-9733-46cc89022e7c} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A302545D-DEFF-464b-ABE8-61C8648D939B} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A990AE9F-A03B-4e80-94BC-9912D7504104} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /f /v {031E4825-7B94-4dc3-B131-E946B44C8DD5}
REM Disable Homegroup
REM This might not work doublecheck it
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93} /f
sc config "HomeGroupListener" start= disabled
sc config "HomeGroupProvider" start= disabled
REM Enable QuickEdit Mode
reg add "HKCU\Console" /f /v "QuickEdit" /t REG_DWORD /d 1
REM Clear Taskbar Pins and SendTo and Recent Places
DEL /F /S /Q /A "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*"
DEL /F /S /Q /A "%APPDATA%\Microsoft\Windows\SendTo\*"
REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband /F
del "%USERPROFILE%\Links\RecentPlaces.lnk"
taskkill /f /im explorer.exe
start explorer.exe
REM Clear RightClick->New members
reg delete HKCR\.bmp\ShellNew /f
reg delete HKCR\.rtf\ShellNew /f
reg delete HKCR\.trc\ShellNew /f
reg delete HKCR\.lnk\ShellNew /f
reg delete HKCR\Briefcase\ShellNew /f
reg delete HKCR\.contact\ShellNew /f
reg delete HKCR\.zip\CompressedFolder\ShellNew /f
REM Disable Share With from RightClick
reg delete "HKCR\*\shellex\ContextMenuHandlers\Sharing" /f
reg delete "HKCR\Directory\Background\shellex\ContextMenuHandlers\Sharing" /f
reg delete "HKCR\Directory\shellex\ContextMenuHandlers\Sharing" /f
reg delete "HKCR\Drive\shellex\ContextMenuHandlers\Sharing" /f
reg delete "HKCR\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing" /f
reg delete "HKCR\UserLibraryFolder\shellex\ContextMenuHandlers\Sharing" /f
REM Remove Print from RightClick Menu
reg delete HKLM\SOFTWARE\Classes\InternetShortcut\shell\print /f
reg delete HKCR\AcroExch.Document.7\shell\print /f
reg delete HKCR\FoxitReader.Document\shell\print /f
reg delete HKCR\SystemFileAssociations\image\shell\print /f
reg delete HKCR\SystemFileAssociations\text\shell\print /f
reg delete HKCR\batfile\shell\print /f
reg delete HKCR\cmdfile\shell\print /f
reg delete HKCR\docfile\shell\print /f
reg delete HKCR\fonfile\shell\print /f
reg delete HKCR\htmlfile\shell\print /f
reg delete HKCR\inffile\shell\print /f
reg delete HKCR\inifile\shell\print /f
reg delete HKCR\JSEFile\shell\print /f
reg delete HKCR\JSFile\shell\print /f
reg delete HKCR\MSInfo.Document\shell\print /f
reg delete HKCR\otffile\shell\print /f
reg delete HKCR\pfmfile\shell\print /f
reg delete HKCR\regfile\shell\print /f
reg delete HKCR\rtffile\shell\print /f
reg delete HKCR\ttcfile\shell\print /f
reg delete HKCR\txtfile\shell\print /f
reg delete HKCR\VBEfile\shell\print /f
reg delete HKCR\VBSfile\shell\print /f
reg delete HKCR\Wordpad.Document.1\shell\print /f
reg delete HKCR\WPEDoc\shell\print /f
reg delete HKCR\WPSDoc\shell\print /f
reg delete HKCR\wrifile\shell\print /f
reg delete HKCR\WSFFile\shell\print /f
REM Disable Taskbar Pin on Rightclick Files
reg delete HKCR\*\shellex\ContextMenuHandlers\{90AA3A4E-1CBA-4233-B8BB-535773D48449} /f
reg delete HKCR\*\shellex\ContextMenuHandlers\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8} /f
REM Remove Compabilty + Restore Version from RightClick on File
reg delete HKCR\exefile\shellex\ContextMenuHandlers\Compatibility /f
reg delete HKCR\batfile\shellex\ContextMenuHandlers\Compatibility /f
reg delete HKCR\cmdfile\shellex\ContextMenuHandlers\Compatibility /f
reg delete HKCR\lnkfile\shellex\ContextMenuHandlers\Compatibility /f
reg delete HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153} /f
reg delete HKCR\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153} /f
reg delete HKCR\Directory\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153} /f
reg delete HKCR\Drive\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153} /f
REM Remove Copy To and Move To
reg delete HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13} /f
reg delete HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13} /f
reg delete HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To} /f
reg delete HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To /f
REM No Drives in SendTo Menu
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v "NoDrivesInSendToMenu" /t REG_DWORD /d 1
REM Reduce Hover over Taskbar to 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "ExtendedUIHoverTime" /t REG_DWORD /d 1
REM Disable Balloon Tips
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "EnableBalloonTips" /t REG_DWORD /d 0
REM Cleanup Start Menu
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "Start_ShowPrinters" /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "Start_ShowSetProgramAccessAndDefaults" /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "Start_ShowUser" /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "Start_ShowHelp" /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "Start_ShowMyGames" /t REG_DWORD /d 0
REM Enable Open With Sublime Text
reg add "HKCR\*\shell\Open With Sublime" /f /v "Icon" /t REG_SZ /d "C:\\sublime_text_3\\sublime_text.exe"
reg add "HKCR\*\shell\Open With Sublime\command" /f /ve /d "C:\\sublime_text_3\\sublime_text.exe %1"
REM Enable Shells
reg add "HKCR\Directory\Background\shell\Open CMD" /f /v "HasLUAShield" /t REG_SZ /d ""
reg add "HKCR\Directory\Background\shell\Open CMD" /f /v "Icon" /t REG_SZ /d "C:\\Windows\\System32\\cmd.exe"
reg add "HKCR\Directory\Background\shell\Open CMD\command" /f /ve /d "C:\\Windows\\system32\\cmd.exe /s /k pushd %V"
REM Disable Bluetooth
sc config "bthserv" start= disabled
REM 100% Cpu on winupdate
REM https://www.microsoft.com/en-us/download/details.aspx?id=49542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.