sml156

Windows Tweaks

Feb 21st, 2016
2,774
0
Never
8
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!!
  2.  
  3.  
  4. rem Sections
  5.  
  6. rem Remove various startup entries and policies
  7. rem Restore essential startup entries
  8.  
  9. rem Windows Basics
  10. rem Windows Defender
  11. rem Windows Desktop
  12. rem Windows Drivers
  13. rem Windows Error Reporting
  14. rem Windows Explorer
  15. rem Windows Logging
  16. rem Windows Notifications
  17. rem Windows Optimizations
  18. rem Windows Policies
  19. rem Windows Privacy
  20. rem Windows Scheduled Tasks
  21. rem Windows Services
  22. rem Windows Shell
  23. rem Windows Updates
  24. rem Windows Waypoint
  25.  
  26.  
  27. rem Fixing Windows Problems
  28.  
  29. rem Windows Cleanup - pastebin.com/5Q4t1Us9
  30. rem Windows Complete Fix - pastebin.com/bwCnbKYN
  31. rem Windows Network Fix - pastebin.com/sypxG1ew
  32. rem Windows Repair Free - www.tweaking.com/content/page/windows_repair_all_in_one.html
  33. rem Windows TenForums - www.tenforums.com
  34.  
  35.  
  36. rem Recommended free cleanup software for Windows 10
  37.  
  38. rem CCleaner - www.piriform.com/ccleaner/builds
  39. rem CleanMem - www.pcwintech.com/cleanmem
  40. rem Wise Care - www.wisecleaner.com/wise-care-365.html
  41. rem Wise Program Uninstaller - www.wisecleaner.com/wise-program-uninstaller.html
  42.  
  43.  
  44. rem Recommended free security cleanup software
  45.  
  46. rem Dr.Web CureIt! - free.drweb.com/download+cureit+free
  47. rem Emsisoft Emergency Kit - www.emsisoft.com/en/software/eek
  48.  
  49. rem Guide - malwaretips.com/blogs/malware-removal-guide-for-windows
  50. rem Help - www.bleepingcomputer.com/forums/t/182397/am-i-infected-what-do-i-do-how-do-i-get-help-who-is-helping-me
  51.  
  52.  
  53. rem Recommended free security software
  54.  
  55. rem 360 Total Security Essential - www.360totalsecurity.com/en/features/360-total-security-essential
  56. rem Panda Free Antivirus - www.pandasecurity.com/usa/homeusers/solutions/free-antivirus
  57.  
  58.  
  59. rem Recommended free software replacement for Windows 10 apps
  60.  
  61. rem Browser - Yandex.Browser - browser.yandex.com
  62. rem Computer Management - www.nirsoft.net/utils/index.html
  63. rem File Archiver - 7-zip - www.7-zip.org
  64. rem File Encryption - AxCrypt - www.axantum.com/AxCrypt/Downloads.html
  65. rem File Explorer - XYplorerFree - www.xyplorer.com/free
  66. rem Disc Space Manager - TreeSize Free - www.jam-software.com/treesize_free
  67. rem Hardware Information - HWiNFO - www.hwinfo.com/download.php
  68. rem Image Viewer - XnView Min - www.xnview.com/en/xnview/#downloads
  69. rem Media Player - MPC-HC - mpc-hc.org/downloads
  70. rem Network Settings - NetSetMan - www.netsetman.com/en/freeware
  71. rem Office Suite - LibreOffice - www.libreoffice.org/download/libreoffice-fresh
  72. rem Password Manager (Offline) - KeePass - keepass.info/download.html
  73. rem PDF Viewer - PDF xChange Viewer - www.tracker-software.com/product/downloads
  74. rem Software Update Manager - KC SUMo - www.kcsoftwares.com/?sumo
  75. rem Startup Manager - Autoruns - technet.microsoft.com/en-us/sysinternals/bb963902.aspx
  76. rem Task Manager - Process Hacker - processhacker.sourceforge.net
  77. rem Windows Updates - Windows Update MiniTool - www.softpedia.com/get/System/System-Miscellaneous/Windows-Update-MiniTool.shtml
  78.  
  79.  
  80. rem ========================= Remove various startup entries and policies =========================
  81.  
  82.  
  83. del ""%SystemDrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\*"" /s /f /q
  84. del ""%LocalAppData%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*"" /s /f /q
  85.  
  86. reg delete "HKCU\Software\Microsoft\Command Processor" /v "AutoRun" /f
  87. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Startup" /f
  88. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Startup" /f
  89. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop" /f
  90. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f
  91. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /f
  92. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f
  93. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
  94. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunServices" /f
  95. reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce" /f
  96. reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server" /f
  97. reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows" /f
  98. reg delete "HKCU\Software\Policies\Microsoft\Windows\System" /f
  99. reg delete "HKLM\Software\Microsoft\Command Processor" /v "AutoRun" /f
  100. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Common Startup" /f
  101. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Common Startup" /f
  102. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects" /f
  103. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop" /f
  104. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f
  105. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /f
  106. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /f
  107. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
  108. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices" /f
  109. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce" /f
  110. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server" /f
  111. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v "AppInit_DLLs" /f
  112. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /f
  113. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Userinit" /f
  114. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "VMApplet" /f
  115. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AlternateShells" /f
  116. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell" /f
  117. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Taskman" /f
  118. reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit" /f
  119. reg delete "HKLM\Software\Policies\Microsoft\Windows\System" /f
  120. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /f
  121. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\RunOnce" /f
  122. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects" /f
  123. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Windows" /v "AppInit_DLLs" /f
  124. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /f
  125. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Userinit" /f
  126. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "VMApplet" /f
  127. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\AlternateShells" /f
  128. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell" /f
  129. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\Taskman" /f
  130. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit" /f
  131. reg delete "HKLM\System\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
  132. reg delete "HKLM\System\CurrentControlSet\Control\SafeBoot" /v "AlternateShell" /f
  133. reg delete "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /f
  134. reg delete "HKLM\System\CurrentControlSet\Control\Session Manager" /v "Execute" /f
  135. reg delete "HKLM\System\CurrentControlSet\Control\Session Manager" /v "SETUPEXECUTE" /f
  136. reg delete "HKLM\System\CurrentControlSet\Control\Terminal Server\Wds\rdpwd" /v "StartupPrograms" /f
  137.  
  138.  
  139. rem ========================= Restore essential startup entries =========================
  140.  
  141.  
  142. bcdedit /set {default} bootstatuspolicy DisplayAllFailures
  143.  
  144. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "EvtMgr6" /t REG_SZ /d "C:\Program Files\Logitech\SetPointP\SetPoint.exe /launchGaming" /f
  145. reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /t REG_SZ /d "explorer.exe" /f
  146. reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Userinit" /t REG_SZ /d "C:\Windows\System32\userinit.exe," /f
  147. reg add "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /t REG_SZ /d "explorer.exe" /f
  148. reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *" /f
  149. reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "SETUPEXECUTE" /t REG_MULTI_SZ /d "" /f
  150.  
  151.  
  152. rem ========================= Windows Basics =========================
  153.  
  154.  
  155. rem Disable Windows Firewall / AllProfiles / CurrentProfile / DomainProfile / PrivateProfile / PublicProfile
  156. netsh advfirewall set allprofiles state off
  157.  
  158.  
  159. rem Disable IPv6
  160. netsh int ipv6 isatap set state disabled
  161. netsh int teredo set state disabled
  162. netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled
  163. reg add "HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters" /v "DisabledComponents" /t REG_DWORD /d "255" /f
  164.  
  165.  
  166. rem Delete Windows Sounds (Permanently)
  167. reg delete "HKCU\AppEvents\Schemes\Apps" /f
  168.  
  169.  
  170. rem 506 - Disable Sticky Keys when SHIFT is pressed 5 times / 510 - Enable
  171. reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v "Flags" /t REG_SZ /d "506" /f
  172.  
  173. rem 122 - Disable Filter Keys when SHIFT is pressed for 8 seconds / 126 - Enable
  174. reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "Flags" /t REG_SZ /d "122" /f
  175.  
  176.  
  177. rem Set Formats to Metric
  178. reg add "HKCU\Control Panel\International" /v "iDigits" /t REG_SZ /d "2" /f
  179. reg add "HKCU\Control Panel\International" /v "iLZero" /t REG_SZ /d "1" /f
  180. reg add "HKCU\Control Panel\International" /v "iMeasure" /t REG_SZ /d "0" /f
  181. reg add "HKCU\Control Panel\International" /v "iNegNumber" /t REG_SZ /d "1" /f
  182. reg add "HKCU\Control Panel\International" /v "iPaperSize" /t REG_SZ /d "1" /f
  183. reg add "HKCU\Control Panel\International" /v "iTLZero" /t REG_SZ /d "1" /f
  184. reg add "HKCU\Control Panel\International" /v "sDecimal" /t REG_SZ /d "," /f
  185. reg add "HKCU\Control Panel\International" /v "sNativeDigits" /t REG_SZ /d "0123456789" /f
  186. reg add "HKCU\Control Panel\International" /v "sNegativeSign" /t REG_SZ /d "-" /f
  187. reg add "HKCU\Control Panel\International" /v "sPositiveSign" /t REG_SZ /d "" /f
  188. reg add "HKCU\Control Panel\International" /v "NumShape" /t REG_SZ /d "1" /f
  189.  
  190. rem Set Location to United States (for the best Windows and Store experience)
  191. reg add "HKCU\Control Panel\International\Geo" /v "Nation" /t REG_SZ /d "244" /f
  192.  
  193. rem Set Time to 24h / Monday
  194. reg add "HKCU\Control Panel\International" /v "iCalendarType" /t REG_SZ /d "1" /f
  195. reg add "HKCU\Control Panel\International" /v "iDate" /t REG_SZ /d "1" /f
  196. reg add "HKCU\Control Panel\International" /v "iFirstDayOfWeek" /t REG_SZ /d "0" /f
  197. reg add "HKCU\Control Panel\International" /v "iFirstWeekOfYear" /t REG_SZ /d "0" /f
  198. reg add "HKCU\Control Panel\International" /v "iTime" /t REG_SZ /d "1" /f
  199. reg add "HKCU\Control Panel\International" /v "iTimePrefix" /t REG_SZ /d "0" /f
  200. reg add "HKCU\Control Panel\International" /v "sDate" /t REG_SZ /d "-" /f
  201. reg add "HKCU\Control Panel\International" /v "sList" /t REG_SZ /d "," /f
  202. reg add "HKCU\Control Panel\International" /v "sLongDate" /t REG_SZ /d "d MMMM, yyyy" /f
  203. reg add "HKCU\Control Panel\International" /v "sMonDecimalSep" /t REG_SZ /d "." /f
  204. reg add "HKCU\Control Panel\International" /v "sMonGrouping" /t REG_SZ /d "3;0" /f
  205. reg add "HKCU\Control Panel\International" /v "sMonThousandSep" /t REG_SZ /d "," /f
  206. reg add "HKCU\Control Panel\International" /v "sShortDate" /t REG_SZ /d "dd-MMM-yy" /f
  207. reg add "HKCU\Control Panel\International" /v "sTime" /t REG_SZ /d ":" /f
  208. reg add "HKCU\Control Panel\International" /v "sTimeFormat" /t REG_SZ /d "HH:mm:ss" /f
  209. reg add "HKCU\Control Panel\International" /v "sShortTime" /t REG_SZ /d "HH:mm" /f
  210. reg add "HKCU\Control Panel\International" /v "sYearMonth" /t REG_SZ /d "MMMM yyyy" /f
  211.  
  212.  
  213. rem When windows detects communicarions activity / 0 - Mute all other sounds / 1 - Reduce all other by 80% / 2 - Reduce all other by 50% / 3 - Do nothing
  214. reg add "HKCU\Software\Microsoft\Multimedia\Audio" /v "UserDuckingPreference" /t REG_DWORD /d "3" /f
  215.  
  216. rem 1 - Enable Automatic Restart on System Failure
  217. reg add "HKLM\System\CurrentControlSet\Control\CrashControl" /v "AutoReboot" /t REG_DWORD /d "1" /f
  218.  
  219. rem System Info
  220. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Logo" /t REG_SZ /d "D:\Software\Temp\Pics\Mikai.bmp" /f
  221. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /t REG_SZ /d "TairikuOkami" /f
  222. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /t REG_SZ /d "None" /f
  223. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /t REG_SZ /d "None" /f
  224. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /t REG_SZ /d "https://www.facebook.com/tairikuokami" /f
  225.  
  226.  
  227. rem Enable System restore and Set the size
  228. reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\SPP\Clients" /v " {09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}" /t REG_MULTI_SZ /d "1" /f
  229. vssadmin Resize ShadowStorage /For=C: /On=C: /Maxsize=4GB
  230.  
  231.  
  232. rem Replace default Task Manager with Process Hacker (must be installed prior to use)
  233. reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe" /v "Debugger" /t REG_SZ /d "\"C:\Program Files\Process Hacker 2\ProcessHacker.exe\"" /f
  234. reg add "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe" /v "Debugger" /t REG_SZ /d "\"C:\Program Files\Process Hacker 2\ProcessHacker.exe\"" /f
  235.  
  236.  
  237. rem Computer Name - E525 (Computer name should not be longer than 16 characters)
  238. reg add "HKLM\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v "ComputerName" /t REG_SZ /d "E525" /f
  239. reg add "HKLM\System\CurrentControlSet\Control\ComputerName\ComputerName" /v "ComputerName" /t REG_SZ /d "E525" /f
  240. reg add "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters" /v "Hostname" /t REG_SZ /d "E525" /f
  241. reg add "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t REG_SZ /d "E525" /f
  242.  
  243.  
  244. rem Time to display recovery options when needed in seconds
  245. reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "AutoChkTimeout" /t REG_DWORD /d "5" /f
  246.  
  247.  
  248. rem ========================= Windows Defender =========================
  249.  
  250.  
  251. rem To completely disable WD - pastebin.com/kYCVzZPz
  252. rem An alternative option - winaero.com/blog/nodefender-disable-windows-defender-in-windows-10-with-few-clicks
  253.  
  254. rem 1 - Disable Real-time protection
  255. reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
  256.  
  257.  
  258. rem ========================= Windows Desktop =========================
  259.  
  260.  
  261. rem 0 - No screen saver is selected / 1 - A screen saver is selected
  262. reg add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 1 /f
  263.  
  264. rem Specifies whether the screen saver is password-protected / 0 - No / 1 - Yes
  265. reg add "HKCU\Control Panel\Desktop" /v "ScreenSaverIsSecure" /t REG_DWORD /d 0 /f
  266.  
  267. rem Specifies in seconds how long the System remains idle before the screen saver starts
  268. reg add "HKCU\Control Panel\Desktop" /v "ScreenSaveTimeOut" /t REG_DWORD /d 250 /f
  269.  
  270. rem Specifies in milliseconds how long the System waits for user processes to end after the user clicks the End Task command button in Task Manager
  271. reg add "HKCU\Control Panel\Desktop" /v "SCRNSAVE.EXE" /t REG_SZ /d "C:\Windows\System32\Mystify.scr" /f
  272.  
  273. rem Wallpaper Location
  274. reg add "HKCU\Control Panel\Desktop" /v "Wallpaper" /t REG_SZ /d "D:\Software\Temp\Pics\Wallpaper.jpg" /f
  275.  
  276. rem 0 - Center the bitmap on the desktop / 2 - Stretch the bitmap vertically and horizontally to fit the desktop
  277. reg add "HKCU\Control Panel\Desktop" /v "WallpaperStyle" /t REG_DWORD /d 2 /f
  278.  
  279.  
  280. rem 0 - Always show all icons and notifications on the taskbar / 1 - Hide Inactive Icons
  281. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "EnableAutoTray" /t REG_DWORD /d 0 /f
  282.  
  283.  
  284. rem Hide Control Panel
  285. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t REG_DWORD /d 1 /f
  286.  
  287. rem Hide Network
  288. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d 1 /f
  289.  
  290. rem Hide Recycle Bin
  291. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /t REG_DWORD /d 1 /f
  292.  
  293. rem Hide This PC
  294. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 1 /f
  295.  
  296. rem Hide User's Files
  297. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 1 /f
  298.  
  299.  
  300. rem 0 - Disable Cortana
  301. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "AllowCortana" /t REG_DWORD /d 0 /f
  302.  
  303. rem 0 - Disable Bing Search
  304. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d "0" /f
  305.  
  306. rem 0 - Disable Cortana in Taskbar search
  307. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f
  308.  
  309. rem 0 - Hide Taskbar search / 1 - Show search icon / 2 - Show search box
  310. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
  311.  
  312.  
  313. REM 0 - Disable Cortana, Bing Search and Searchbar
  314. reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f
  315.  
  316. rem 1 - Disable web search in search bar
  317. reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /t REG_DWORD /d 1 /f
  318.  
  319. rem 0 - Disable search web when searching pc
  320. reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWeb" /t REG_DWORD /d 0 /f
  321. reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWebOverMeteredConnections" /t REG_DWORD /d 0 /f
  322.  
  323.  
  324. rem ========================= Windows Drivers =========================
  325.  
  326.  
  327. rem Specifies how the System responds when a user tries to install device driver files that are not digitally signed / 00 - Ignore / 01 - Warn / 02 - Block
  328. reg add "HKLM\Software\Microsoft\Driver Signing" /v "Policy" /t REG_BINARY /d "01" /f
  329.  
  330.  
  331. rem 1 - Prevent device metadata retrieval from the Internet/ Do not automatically download manufacturers’ apps and custom icons available for your devices
  332. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f
  333.  
  334.  
  335. rem Do you want Windows to download driver Software / 0 - Never / 1 - Allways / 2 - Install driver Software, if it is not found on my computer
  336. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d 0 /f
  337.  
  338.  
  339. rem ========================= Windows Error Reporting =========================
  340.  
  341.  
  342. rem 1 - Disable Windows Error Reporting (WER)
  343. reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f
  344. reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f
  345.  
  346. rem 1 - Disable WER sending second-level data
  347. reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d 1 /f
  348. reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d 1 /f
  349.  
  350. rem 1 - Disable WER crash dialogs, popups
  351. reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "DontShowUI" /t REG_DWORD /d 1 /f
  352. reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "DontShowUI" /t REG_DWORD /d 1 /f
  353.  
  354. rem 1 - Disable WER logging
  355. reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /t REG_DWORD /d 1 /f
  356. reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /t REG_DWORD /d 1 /f
  357.  
  358.  
  359. rem ========================= Windows Explorer =========================
  360.  
  361.  
  362. rem All of the components of Windows Explorer run a single process / 1 - All instances of Windows Explorer run in one process and the Desktop and Taskbar run in a separate process
  363. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "DesktopProcess" /t REG_DWORD /d 1 /f
  364.  
  365. rem 2 - Underline icon titles consistent with my browser / 3 - Underline icon titles only when I point at them
  366. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "IconUnderline" /t REG_DWORD /d 2 /f
  367.  
  368. rem Single-click to open an item
  369. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShellState" /t REG_BINARY /d "2400000017a8000000000000000000000000000001000000130000000000000073000000" /f
  370.  
  371. rem Do not show Frequent folders in Quick Access
  372. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /t REG_DWORD /d 0 /f
  373.  
  374. rem Do not show Recent folders in Quick Access
  375. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecent" /t REG_DWORD /d 0 /f
  376.  
  377.  
  378. rem 0 - Do not hide extensions for known file types
  379. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f
  380.  
  381. rem 1 - Show Hidden Folders and Files
  382. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
  383.  
  384. rem 0 - Open File Explorer to Quick access / 1 - Open File Explorer to This PC
  385. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
  386.  
  387. rem 0 - Do not use Sharing Wizard
  388. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SharingWizardOn" /t REG_DWORD /d 0 /f
  389.  
  390. rem 1 - Launch folder windows in a separate process
  391. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SeparateProcess" /t REG_DWORD /d 1 /f
  392.  
  393. rem 1 - Show protected operating System files
  394. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
  395.  
  396. rem 0 - Hide Task View button
  397. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f
  398.  
  399.  
  400. rem Remove Desktop folder from This PC
  401. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
  402. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
  403.  
  404. rem Remove Documents folder from This PC
  405. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
  406. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
  407.  
  408. rem Remove Downloads folder from This PC
  409. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
  410. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
  411.  
  412. rem Remove Music folder from This PC on
  413. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
  414. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
  415.  
  416. rem Remove Pictures folder from This PC
  417. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
  418. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
  419.  
  420. rem Remove Videos folder from This PC
  421. reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
  422. reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
  423.  
  424.  
  425. rem ========================= Windows Logging =========================
  426.  
  427.  
  428. rem DiagLog required by Diagnostic Policy Service
  429. rem EventLog-Application required by Windows
  430. rem EventLog-System required by Windows
  431. rem WdiContextLog required by Diagnostic Service Host, Diagnostic System Host and ShellExperienceHost (Start, Time, Volume and such)
  432.  
  433.  
  434. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AITEventLog" /v "Start" /t REG_DWORD /d 0 /f
  435. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AppModel" /v "Start" /t REG_DWORD /d 0 /f
  436. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AppPlat" /v "Start" /t REG_DWORD /d 0 /f
  437. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\Audio" /v "Start" /t REG_DWORD /d 0 /f
  438. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
  439. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\Circular Kernel Context Logger" /v "Start" /t REG_DWORD /d 0 /f
  440. reg add "HKLM\System\CurrentControlSet\Control\WMI\AutoLogger\DefenderApiLogger" /v "Start" /t REG_DWORD /d 0 /f
  441. reg add "HKLM\System\CurrentControlSet\Control\WMI\AutoLogger\DefenderAuditLogger" /v "Start" /t REG_DWORD /d 0 /f
  442. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\LwtNetLog" /v "Start" /t REG_DWORD /d 0 /f
  443. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\NtfsLog" /v "Start" /t REG_DWORD /d 0 /f
  444. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\ReadyBoot" /v "Start" /t REG_DWORD /d 0 /f
  445. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f
  446. reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\WiFiSession" /v "Start" /t REG_DWORD /d 0 /f
  447.  
  448.  
  449. rem ========================= Windows Notifications =========================
  450.  
  451. rem 1 - Show me tips about Windows
  452. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\SoftLanding" /v "Enabled" /t REG_DWORD /d 0 /f
  453.  
  454. rem 1 - Do not show app Notifications / Disable the message: Turn on Windows Security Center service
  455. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_TOASTS_ENABLED" /t REG_DWORD /d 0 /f
  456.  
  457. rem 1 - Do not show alarms, reminders and incoming VOIP calls on the lock
  458. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK" /t REG_DWORD /d 0 /f
  459.  
  460. rem 1 - Do not show notifications on the lock screen
  461. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK" /t REG_DWORD /d 0 /f
  462.  
  463. rem 1 - Hide notifications while presenting
  464. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_SUPRESS_TOASTS_WHILE_DUPLICATING" /t REG_DWORD /d 0 /f
  465.  
  466. rem 0/1 - Do not show app Notifications
  467. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d 0 /f
  468. reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoToastApplicationNotification" /t REG_DWORD /d 1 /f
  469.  
  470. rem 1 - Disable Action Center
  471. reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d 1 /f
  472.  
  473.  
  474. rem 1808 - Disable the warning The Publisher could not be verified
  475. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 1808 /f
  476.  
  477. rem Disable Security warning to unblock the downloaded file
  478. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d 1 /f
  479.  
  480.  
  481. rem 1 - Display confirmation dialog when deleting files
  482. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ConfirmFileDelete" /t REG_DWORD /d 1 /f
  483.  
  484.  
  485. rem ========================= Windows Optimizations =========================
  486.  
  487.  
  488. rem Determines whether user processes end automatically when the user either logs off or shuts down / 1 - Processes end automatically
  489. reg add "HKCU\Control Panel\Desktop" /v "AutoEndTasks" /t REG_DWORD /d 1 /f
  490.  
  491. rem When the time is set too low, apps like Settings will crash, system icons like Volume and Power will disappear
  492. rem Specifies in milliseconds how long the System waits for user processes to end after the user clicks the End Task command button in Task Manager
  493. reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f
  494.  
  495. rem Determines how long the System waits for user processes to end after the user attempts to log off or to shut down
  496. reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "10000" /f
  497.  
  498. rem Determines in milliseconds how long the System waits for services to stop after notifying the service that the System is shutting down
  499. reg add "HKLM\System\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "10000" /f
  500.  
  501.  
  502. rem Determines in milliseconds the interval from the time the cursor is pointed at a menu until the menu items are displayed
  503. reg add "HKCU\Control Panel\Desktop" /v "MenuShowDelay" /t REG_DWORD /d 0 /f
  504.  
  505. rem How long in milliseconds you want to have for a startup delay time for desktop apps that run at startup to load
  506. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t REG_DWORD /d 0 /f
  507.  
  508.  
  509. rem n - Disable Background disk defragmentation / y - EnableHow long in milliseconds you want to have for a startup delay time for desktop apps that run at startup to load
  510. reg add "HKLM\Software\Microsoft\Dfrg\BootOptimizeFunction" /v "Enable" /t REG_SZ /d "n" /f
  511.  
  512. rem 0 - Disable Background auto-layout / Disable Optimize Hard Disk when idle
  513. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OptimalLayout" /v "EnableAutoLayout" /t REG_DWORD /d 0 /f
  514.  
  515. rem 1 - Disable Automatic Maintenance
  516. reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance" /v "MaintenanceDisabled" /t REG_DWORD /d "1" /f
  517.  
  518.  
  519. rem 1 - NTFS does not create short file names
  520. reg add "HKLM\System\CurrentControlSet\Control\FileSystem" /v "NtfsDisable8dot3NameCreation" /t REG_DWORD /d 1 /f
  521.  
  522. rem 1 - Disable the Encrypting File System (EFS)
  523. reg add "HKLM\System\CurrentControlSet\Control\FileSystem" /v "NtfsDisableEncryption" /t REG_DWORD /d 1 /f
  524.  
  525. rem 1 - When listing directories, NTFS does not update the last-access timestamp, and it does not record time stamp updates in the NTFS log
  526. reg add "HKLM\System\CurrentControlSet\Control\FileSystem" /v "NtfsDisableLastAccessUpdate" /t REG_DWORD /d 1 /f
  527.  
  528.  
  529. rem 0 - Drivers and the kernel can be paged to disk as needed / 1 - Drivers and the kernel must remain in physical memory
  530. reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "DisablePagingExecutive" /t REG_DWORD /d 1 /f
  531.  
  532. rem 0 - Disable Prefetch / 1 - Enable Prefetch when the application starts / 2 - Enable Prefetch when the device starts up / 3 - Enable Prefetch when the application or device starts up
  533. reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 0 /f
  534.  
  535. rem 0 - Disable SuperFetch / 1 - Enable SuperFetch when the application starts up / 2 - Enable SuperFetch when the device starts up / 3 - Enable SuperFetch when the application or device starts up
  536. reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d 0 /f
  537.  
  538.  
  539. rem 0 - Disable Fast Startup for a Full Shutdown / 1 - Enable Fast Startup (Hybrid Boot) for a Hybrid Shutdown
  540. reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d 0 /f
  541.  
  542. rem Disable Hibernation / Disable Fast Startup (Hybrid Boot)
  543. powercfg -h off
  544.  
  545.  
  546. rem ========================= Windows Policies =========================
  547.  
  548.  
  549. rem Disable Active Desktop
  550. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ForceActiveDesktopOn" /t REG_DWORD /d "0" /f
  551. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoActiveDesktop" /t REG_DWORD /d "1" /f
  552. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoActiveDesktopChanges" /t REG_DWORD /d "1" /f
  553.  
  554.  
  555. rem Off - Disable Windows SmartScreen / On - Enable Windows SmartScreen
  556. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f
  557.  
  558.  
  559. rem 0xFF - Disable AutoRun on all kinds of drives for the current and for all users / 0x95 - Enable on all drivers
  560. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutorun" /t REG_DWORD /d "0xFF" /f
  561. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutorun" /t REG_DWORD /d "0xFF" /f
  562.  
  563.  
  564. rem 0 - Elevate without prompting / 1 - Prompt for credentials on the secure desktop / 2 - Prompt for consent on the secure desktop / 3 - Prompt for credentials / 4 - Prompt for consent / 5 (Default) - Prompt for consent for non-Windows binaries
  565. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 1 /f
  566.  
  567. rem 0 - Automatically deny elevation requests / 1 - Prompt for credentials on the secure desktop / 3 (Default) - Prompt for credentials
  568. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorUser" /t REG_DWORD /d 1 /f
  569.  
  570. rem Detect application installations and prompt for elevation / 1 - Enabled (default for home) / 0 - Disabled (default for enterprise)
  571. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableInstallerDetection" /t REG_DWORD /d 1 /f
  572.  
  573. rem Run all administrators in Admin Approval Mode / 0 - Disabled (UAC) / 1 - Enabled (UAC)
  574. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d 1 /f
  575.  
  576. rem Only elevate UIAccess applications that are installed in secure locations / 0 - Disabled / 1 (Default) - Enabled
  577. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableSecureUIAPaths" /t REG_DWORD /d 1 /f
  578.  
  579. rem Allow UIAccess applications to prompt for elevation without using the secure desktop / 0 (Default) = Disabled / 1 - Enabled
  580. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableUIADesktopToggle" /t REG_DWORD /d 1 /f
  581.  
  582. rem Admin Approval Mode for the built-in Administrator account / 0 (Default) - Disabled / 1 - Enabled
  583. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "FilterAdministratorToken" /t REG_DWORD /d 1 /f
  584.  
  585. rem Allow UIAccess applications to prompt for elevation without using the secure desktop / 0 (Default) - Disabled / 1 - Enabled
  586. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t REG_DWORD /d 1 /f
  587.  
  588.  
  589. rem 0 - Disable Windows Script Host for the current user
  590. reg add "HKCU\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d 0 /f
  591.  
  592. rem 0 - Disable Windows Script Host for all users
  593. reg add "HKLM\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d 0 /f
  594.  
  595.  
  596. rem 1 - Do not display the lock screen
  597. reg add "HKLM\Software\Policies\Microsoft\Windows\Personalization" /v "NoLockScreen" /t REG_DWORD /d 1 /f
  598.  
  599.  
  600. rem No-one will be a member of the built-in group, although it will still be visible in the Object Picker / 1 - all users logging on to a session on the server will be made a member of the TERMINAL SERVER USER group
  601. reg add "HKLM\System\CurrentControlSet\Control\Terminal Server" /v "TSUserEnabled" /t REG_DWORD /d 0 /f
  602.  
  603.  
  604. rem ========================= Windows Privacy =========================
  605.  
  606.  
  607. rem Additional disabled privacy features are disabled in sections: Windows Logging / Windows Scheduled Tasks / Windows Services
  608. rem https://technet.microsoft.com/en-us/library/mt577208(v=vs.85).aspx
  609.  
  610. rem 0 - Disable WiFi Sense (shares your WiFi network login with other people)
  611. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v "value" /t REG_DWORD /d 0 /f
  612. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v "value" /t REG_DWORD /d 0 /f
  613.  
  614. rem Diagnostic and usage data / 0 - Never / 1 - Basic / 2 - Enhanced / 3 - Full
  615. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  616. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Program-Telemetry" /v "Enabled" /t REG_DWORD /d 0 /f
  617. reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  618.  
  619. rem 0 - Disable Customer Experience Improvement (CEIP/SQM - Software Quality Management)
  620. reg add "HKLM\Software\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f
  621.  
  622. rem 0 - Disable Application Impact Telemetry (AIT)
  623. reg add "HKLM\Software\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
  624.  
  625. rem 1 - Disable AD customization
  626. reg add "HKLM\Software\Policies\Microsoft\Windows\AdvertisingInfo" /v "DisabledByGroupPolicy" /t REG_DWORD /d 1 /f
  627. ......
  628. rem 1 - Disable Steps Recorder (Steps Recorder keeps a record of steps taken by the user, the data includes user actions such as keyboard input and mouse input user interface data and screen shots)
  629. reg add "HKLM\Software\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
  630.  
  631. rem 0 - Disable sending files to encrypted drives
  632. reg add "HKLM\Software\Policies\Microsoft\Windows\EnhancedStorageDevices" /v "TCGSecurityActivationDisabled" /t REG_DWORD /d 0 /f
  633.  
  634. rem 1 - Disable sync files to one drive
  635. reg add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /t REG_DWORD /d 1 /f
  636.  
  637. rem 2 - Disable sending settings to cloud
  638. reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSync" /t REG_DWORD /d 2 /f
  639.  
  640. rem 1 - Disable synchronizing files to cloud
  641. reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSyncUserOverride" /t REG_DWORD /d 1 /f
  642.  
  643. rem 0 - Disable Steps Recorder
  644. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Steps-Recorder" /v "Enabled" /t REG_DWORD /d 0 /f
  645.  
  646.  
  647. rem ========================= Windows Scheduled Tasks =========================
  648.  
  649.  
  650. rem Disable Background Synchronization (permanently, it can not be disabled)
  651. schtasks /DELETE /TN "Microsoft\Windows\SettingSync\BackgroundUploadTask" /F
  652.  
  653. schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319" /Disable
  654. schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64" /Disable
  655. schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64 Critical" /Disable
  656. schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 Critical" /Disable
  657. schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable
  658. schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
  659. schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
  660. schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
  661. schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
  662. schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
  663. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
  664. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
  665. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
  666. schtasks /Change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /Disable
  667. schtasks /Change /TN "Microsoft\Windows\Device Setup\Metadata Refresh" /Disable
  668. schtasks /Change /TN "Microsoft\Windows\Diagnosis\Scheduled" /Disable
  669. schtasks /Change /TN "Microsoft\Windows\DiskCleanup\SilentCleanup" /Disable
  670. schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable
  671. schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable
  672. schtasks /Change /TN "Microsoft\Windows\DiskFootprint\StorageSense" /Disable
  673. schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /Disable
  674. schtasks /Change /TN "Microsoft\Windows\File Classification Infrastructure\Property Definition Sync" /Disable
  675. schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable
  676. schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
  677. schtasks /Change /TN "Microsoft\Windows\Maps\MapsToastTask" /Disable
  678. schtasks /Change /TN "Microsoft\Windows\Maps\MapsUpdateTask" /Disable
  679. schtasks /Change /TN "Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" /Disable
  680. schtasks /Change /TN "Microsoft\Windows\Multimedia\SystemSoundsService" /Disable
  681. schtasks /Change /TN "Microsoft\Windows\NetCfg\BindingWorkItemQueueHandler" /Disable
  682. schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
  683. schtasks /Change /TN "Microsoft\Windows\Offline Files\Background Synchronization" /Disable
  684. schtasks /Change /TN "Microsoft\Windows\Offline Files\Logon Synchronization" /Disable
  685. schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
  686. schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /Disable
  687. schtasks /Change /TN "Microsoft\Windows\Ras\MobilityManager" /Disable
  688. schtasks /Change /TN "Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Disable
  689. schtasks /Change /TN "Microsoft\Windows\RetailDemo\CleanupOfflineContent" /Disable
  690. schtasks /Change /TN "Microsoft\Windows\RemovalTools\MRT_HB" /Disable
  691. schtasks /Change /TN "Microsoft\Windows\SettingSync\NetworkStateChangeTask" /Disable
  692. schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /Disable
  693. schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /Disable
  694. schtasks /Change /TN "Microsoft\Windows\Shell\IndexerAutomaticMaintenance" /Disable
  695. schtasks /Change /TN "Microsoft\Windows\SpacePort\SpaceAgentTask" /Disable
  696. schtasks /Change /TN "Microsoft\Windows\SystemRestore\SR" /Enable
  697. schtasks /Change /TN "Microsoft\Windows\Sysmain\ResPriStaticDbSync" /Disable
  698. schtasks /Change /TN "Microsoft\Windows\Sysmain\WsSwapAssessmentTask" /Disable
  699. schtasks /Change /TN "Microsoft\Windows\TextServicesFramework\MsCtfMonitor" /Disable
  700. schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-HASCertRetr" /Disable
  701. schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-Maintenance" /Disable
  702. schtasks /Change /TN "Microsoft\Windows\User Profile Service\HiveUploadTask" /Disable
  703. schtasks /Change /TN "Microsoft\Windows\WCM\WiFiTask" /Disable
  704. schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable
  705. schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable
  706. schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable
  707. schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable
  708. schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
  709. schtasks /Change /TN "Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange" /Disable
  710. schtasks /Change /TN "Microsoft\Windows\Windows Media Sharing\UpdateLibrary" /Disable
  711. schtasks /Change /TN "Microsoft\Windows\Wininet\CacheTask" /Disable
  712. schtasks /Change /TN "Microsoft\Windows\Workplace Join\Automatic-Device-Join" /Disable
  713.  
  714.  
  715. rem ========================= Windows Services =========================
  716.  
  717.  
  718. rem Application Information required by UAC
  719. rem Credential Manager required to store credentials (check User Accounts - Credential Manager)
  720. rem COM+ Event System required by Windows
  721. rem Distributed Link Tracking Client required to open shortcuts and System apps
  722. rem IP Helper (WinHTTP Web Proxy Auto-Discovery Service) required to login to Microsoft Account (Account, Cortana, Store)
  723. rem Network Location Awareness required by Windows Updates
  724. rem One Drive required by Windows Mail
  725. rem Windows Connection Manager required by WiFi and Data Usage
  726. rem Windows Driver Foundation - User-mode Driver Framework required by some drivers like USB devices
  727. rem Windows Firewall (Base Filtering Engine) required by Windows Store Apps (0x80073d0a) and Windows Update (0x80240022)
  728.  
  729.  
  730. rem AMD External Events Utility
  731. sc config "AMD External Events Utility" start= disabled
  732.  
  733. rem AMD FUEL Service
  734. sc config "AMD FUEL Service" start= disabled
  735.  
  736. rem Application Layer Gateway Service
  737. sc config ALG start= disabled
  738.  
  739. rem BitLocker Drive Encryption Service
  740. sc config BDESVC start= disabled
  741.  
  742. rem CNG Key Isolation
  743. sc config KeyIso start= disabled
  744.  
  745. rem Diagnostics Tracking Service
  746. sc config DiagTrack start= disabled
  747.  
  748. rem Distributed Transaction Coordinator
  749. sc config MSDTC start= disabled
  750.  
  751. rem dmwappushsvc
  752. sc config dmwappushservice start= disabled
  753.  
  754. rem DNS Client (Required by the internet connection, unless you set up DNS servers manually in IPv4/6's properties)
  755. sc config Dnscache start= disabled
  756.  
  757. rem Encrypting File System (EFS)
  758. sc config EFS start= disabled
  759.  
  760. rem IKE and AuthIP IPsec Keying Modules
  761. sc config IKEEXT start= disabled
  762.  
  763. rem IPsec Policy Agent
  764. sc config PolicyAgent start= disabled
  765.  
  766. rem Offline Files
  767. sc config CscService start= disabled
  768.  
  769. rem One Drive Service
  770. sc config OneSyncSvc start= disabled
  771.  
  772. rem One Drive Service
  773. reg add "HKLM\System\CurrentControlSet\Services\OneSyncSvc_Session1" /v "Start" /t REG_DWORD /d 4 /f
  774.  
  775. rem Print Spooler (Required by the printer)
  776. sc config Spooler start= disabled
  777.  
  778. rem Program Compatibility Assistant Service
  779. sc config PcaSvc start= disabled
  780.  
  781. rem Remote Desktop Services
  782. sc config TermService start= disabled
  783.  
  784. rem Retail Demo
  785. sc config RetailDemo start=disabled
  786.  
  787. rem Secure Socket Tunneling Protocol Service
  788. sc config SstpSvc start= disabled
  789.  
  790. rem Security Center
  791. sc config wscsvc start= disabled
  792.  
  793. rem Server
  794. sc config LanmanServer start= disabled
  795.  
  796. rem Shell Hardware Detection
  797. sc config ShellHWDetection start= disabled
  798.  
  799. rem Smart Card
  800. sc config SCardSvr start= disabled
  801.  
  802. rem SSDP Discovery
  803. sc config SSDPSRV start= disabled
  804.  
  805. rem Superfetch
  806. sc config SysMain start= disabled
  807.  
  808. rem TCP/IP NetBIOS Helper (Required by some internet connections like aDSL)
  809. sc config lmhosts start= disabled
  810.  
  811. rem WebClient
  812. sc config WebClient start= disabled
  813.  
  814. rem Windows Connect Now - Config Registrar (Required by WPS WiFi connection)
  815. sc config wcncsvc start= disabled
  816.  
  817. rem Windows Connection Manager (Required by WiFi Connection)
  818. sc config Wcmsvc start= disabled
  819.  
  820. rem Windows Error Reporting Service
  821. sc config WerSvc start= disabled
  822.  
  823. rem Windows Font Cache Service
  824. sc config FontCache start= disabled
  825.  
  826. rem Windows Font Cache Service
  827. sc config FontCache start= disabled
  828.  
  829. rem Windows Remote Management (WS-Management)
  830. sc config WinRM start= disabled
  831.  
  832. rem WinHTTP Web Proxy Auto-Discovery Service
  833. sc config WinHttpAutoProxySvc start= disabled
  834.  
  835. rem Windows Search
  836. sc config WSearch start= disabled
  837.  
  838. rem Wise Boot Assistant
  839. sc config WiseBootAssistant start= disabled
  840.  
  841. rem WMPNetworkSVC helps windows media player to share its library with network
  842. sc config WMPNetworkSvc start= disabled
  843.  
  844. rem Workstation
  845. sc config LanmanWorkstation start= disabled
  846.  
  847.  
  848. rem ========================= Windows Shell =========================
  849.  
  850.  
  851. rem Add “Take Ownership” Option in Files and Folders Context Menu in Windows
  852. reg add "HKCR\*\shell\runas" /ve /t REG_SZ /d "Take ownership" /f
  853. reg add "HKCR\*\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f
  854. reg add "HKCR\*\shell\runas" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
  855. reg add "HKCR\*\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f
  856. reg add "HKCR\*\shell\runas\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f
  857. reg add "HKCR\Directory\shell\runas" /ve /t REG_SZ /d "Take ownership" /f
  858. reg add "HKCR\Directory\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f
  859. reg add "HKCR\Directory\shell\runas" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
  860. reg add "HKCR\Directory\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant administrators:F /t" /f
  861. reg add "HKCR\Directory\shell\runas\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant administrators:F /t" /f
  862.  
  863.  
  864. rem ========================= Windows Updates =========================
  865.  
  866.  
  867. rem Choose how updates are delivered / 0 - Get Updates from MS / 1 - get updates from MS and from/to PCs on my local network / 2 - get updates from MS and from/to PCs on my local network and PCs on the internet
  868. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DODownloadMode" /t REG_DWORD /d 0 /f
  869.  
  870. rem 1 - Disable Malicious Software Removal Tool offered via Windows Updates (MRT)
  871. reg add "HKLM\Software\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
  872.  
  873. rem 2 - Disable Update Store apps automatically
  874. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v "AutoDownload" /t REG_DWORD /d "2" /f
  875.  
  876. rem 2 - Notify before download / 3 - Automatically download and notify of installation / 4 - Automatic download and scheduled installation (Only valid if values exist for ScheduledInstallDay and ScheduledInstallTime) / 5 - Automatic Updates is required, but end users can configure it
  877. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /t REG_DWORD /d 2 /f
  878.  
  879. rem 0 - Enable Auto Checking for Windows Updates / 1 - Disable Auto Checking for Windows Updates (Ignores "AUOptions" and after checking downloads WU automatically)
  880. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 0 /f
  881.  
  882. rem 0 - Every day / 1 - Sunday / 2 - Monday / 3 - Tuesday / 4 - Wednesday / 5 - Thursday / 6 - Friday / 7 - Saturday
  883. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallDay" /t REG_DWORD /d 0 /f
  884.  
  885. rem 10 - 10th hour / 23 - 23th hour
  886. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallTime" /t REG_DWORD /d 10 /f
  887.  
  888. rem 0 - Default / 1 - Defer upgrades, new Windows features won’t be downloaded or installed for several months. Deferring upgrades doesn’t affect security updates.
  889. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\UX\Settings" /v "DeferUpgrade" /t REG_DWORD /d 0 /f
  890.  
  891.  
  892. rem ========================= Windows Waypoint =========================
  893.  
  894.  
  895. fsutil usn deletejournal /d /n c:
  896.  
  897. rem Close Edge process
  898. taskkill /f /im dllhost.exe
  899.  
  900. start "" "C:\Program Files\CCleaner\CCleaner64.exe" /AUTO /SHUTDOWN
  901.  
  902.  
  903. pause
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Gelnevor
    235 days
    Comment was deleted
  • User was banned
Add Comment
Please, Sign In to add comment