1. Option Explicit
  2. '~ On Error Resume Next
  3. RequireAdmin
  4.  
  5. Dim objReg
  6. Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
  7.  
  8. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "EnableICMPRedirect", "REG_DWORD", 0
  9. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "EnablePMTUDiscovery", "REG_DWORD", 0
  10. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "EnablePMTUBHDetect", "REG_DWORD", 0
  11. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "PerformRouterDiscovery", "REG_DWORD", 0
  12. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "EnableDeadGWDetect", "REG_DWORD", 0
  13. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "NoNameReleaseOnDemand", "REG_DWORD", 1
  14. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "SynAttackProtect", "REG_DWORD", 2
  15. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "KeepAliveTime", "REG_DWORD", 300000
  16. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxHalfOpen", "REG_DWORD", 100
  17. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxHalfOpenRetried", "REG_DWORD", 80
  18. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxPortsExhausted", "REG_DWORD", 5
  19. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxConnectResponseRetransmissions", "REG_DWORD", 3
  20. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Lsa", "restrictanonymous", "REG_DWORD", 1
  21. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Lsa", "forceguest", "REG_DWORD", 0
  22. RegWrite "HKLM\SOFTWARE\Microsoft\Rpc", "MaxRpcSize", "REG_DWORD", 1048576
  23. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider", "DnsPriority", "REG_DWORD", 1
  24. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider", "HostsPriority", "REG_DWORD", 1
  25. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider", "LocalPriority", "REG_DWORD", 1
  26. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider", "NetbtPriority", "REG_DWORD", 1
  27. RegWrite "HKLM\System\CurrentControlSet\Services\Ndiswan\Parameters\Protocols\0", "ProtocolType", "REG_DWORD", 2048
  28. RegWrite "HKLM\System\CurrentControlSet\Services\Ndiswan\Parameters\Protocols\0", "PPPProtocolType", "REG_DWORD", 33
  29. RegWrite "HKLM\System\CurrentControlSet\Services\Ndiswan\Parameters\Protocols\0", "ProtocolMTU", "REG_DWORD", 576
  30. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\Adapter ID", "MTU", "REG_DWORD", 576
  31. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpTimedWaitDelay", "REG_DWORD", 30
  32. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxConnectRetransmissions", "REG_DWORD", 3
  33. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxDataRetransmissions", "REG_DWORD", 6
  34. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched", "MaxOutstandingSends", "REG_DWORD", 65535
  35. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched", "NonBestEffortLimit", "REG_DWORD", 0
  36. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters", "NetFailureCacheTime", "REG_DWORD", 0
  37. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters", "NegativeSOACacheTime", "REG_DWORD", 0
  38. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters", "CacheHashTableBucketSize", "REG_DWORD", 1
  39. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters", "CacheHashTableSize", "REG_DWORD", 384
  40. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters", "MaxCacheEntryTtlLimit", "REG_DWORD", 64000
  41. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters", "MaxSOACacheEntryTtlLimit", "REG_DWORD", 301
  42. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "DefaultTTL", "REG_DWORD", 100
  43. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxDupAcks", "REG_DWORD", 2
  44. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "SackOpts", "REG_DWORD", 1
  45. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "Tcp1323Opts", "REG_DWORD", 1
  46. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "ForwardBufferMemory", "REG_DWORD", 150016
  47. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "MaxFreeTcbs", "REG_DWORD", 415030
  48. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "MaxUserPort", "REG_DWORD", 415028
  49. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "GlobalMaxTcpWindowSize", "REG_DWORD", 415029
  50. RegWrite "HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters", "EnableConnectionRateLimiting", "REG_DWORD", 0
  51. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpNumConnections", "REG_DWORD", 16777214
  52. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient", "SpecialPollInterval", "REG_DWORD", 3600
  53. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection", "AllowTelemetry", "REG_DWORD", 0
  54. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\WMI\Autologger\AutoLogger-Diagtrack-Listener", "Start", "REG_DWORD", 0
  55. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters", "EnableLMHOSTS", "REG_DWORD", 0
  56. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer", "FirstRunTelemetryComplete", "REG_DWORD", 0
  57. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer", "TelemetrySalt", "REG_DWORD", 0
  58. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "IOPageLockLimit", "REG_DWORD", 262144
  59. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl", "IRQ8Priority", "REG_DWORD", 1
  60. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "LinkResolveIgnoreLinkInfo", "REG_DWORD", 1
  61. RegWrite "HKCU\Control Panel\Desktop", "LowLevelHooksTimeout", "REG_SZ", "1000"
  62. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoLowDiskSpaceChecks", "REG_DWORD", 1
  63. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoResolveSearch", "REG_DWORD", 1
  64. RegWrite "HKCU\Control Panel\Desktop", "PowerOffActive", "REG_DWORD", 1
  65. RegWrite "HKU\S-1-5-19\Control Panel\Desktop", "MenuShowDelay", "REG_SZ", "1"
  66. RegWrite "HKU\S-1-5-20\Control Panel\Desktop", "MenuShowDelay", "REG_SZ", "1"
  67. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem", "NtfsDisableLastAccessUpdate", "REG_DWORD", 2147483649
  68. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem", "NtfsDisable8dot3NameCreation", "REG_DWORD", 1
  69. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem", "NtfsMftZoneReservation", "REG_DWORD", 4
  70. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoResolveTrack", "REG_DWORD", 1
  71. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Ndu", "Start", "REG_DWORD", 4
  72. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "EnablePrefetcher", "REG_DWORD", 0
  73. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "EnableSuperfetch", "REG_DWORD", 0
  74. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control", "WaitToKillServiceTimeout", "REG_SZ", "1000"
  75. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "DisablePagingExecutive", "REG_DWORD", 1
  76. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize", "StartupDelayInMSec", "REG_DWORD", 0
  77. RegWrite "HKCU\Control Panel\Desktop", "AutoEndTasks", "REG_SZ", "1"
  78. RegWrite "HKCU\Control Panel\Desktop", "WaitToKillAppTimeout", "REG_SZ", "1000"
  79. RegWrite "HKU\.DEFAULT\Control Panel\Desktop", "AutoEndTasks", "REG_SZ", "1"
  80. RegWrite "HKU\.DEFAULT\Control Panel\Desktop", "WaitToKillAppTimeout", "REG_SZ", "1000"
  81. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "AlwaysUnloadDll", "REG_DWORD", 1
  82. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "AlwaysUnloadDll", "REG_DWORD", 1
  83. RegWrite "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer", "AlwaysUnloadDll", "REG_DWORD", 1
  84. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "ShowDriveLettersFirst", "REG_DWORD", 4
  85. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked", "{596AB062-B4D2-4215-9F74-E9109B0A8153}", "REG_SZ", ""
  86. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked", "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}", "REG_SZ", ""
  87. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked", "{7AD84985-87B4-4a16-BE58-8B72A5B390F7}", "REG_SZ", ""
  88. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}"
  89. RegDeleteKey "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}"
  90. RegWrite "HKCR\SystemFileAssociations\image\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  91. RegWrite "HKCR\batfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  92. RegWrite "HKCR\cmdfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  93. RegWrite "HKCR\docxfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  94. RegWrite "HKCR\fonfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  95. RegWrite "HKCR\htmlfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  96. RegWrite "HKCR\inffile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  97. RegWrite "HKCR\inifile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  98. RegWrite "HKCR\JSEFile\Shell\Print", "ProgrammaticAccessOnly", "REG_SZ", ""
  99. RegWrite "HKCR\otffile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  100. RegWrite "HKCR\pfmfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  101. RegWrite "HKCR\regfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  102. RegWrite "HKCR\rtffile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  103. RegWrite "HKCR\ttcfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  104. RegWrite "HKCR\ttffile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  105. RegWrite "HKCR\txtfile\shell\print", "ProgrammaticAccessOnly", "REG_SZ", ""
  106. RegDeleteKey "HKCR\SystemFileAssociations\.3mf\Shell\3D Edit"
  107. RegDeleteKey "HKCR\SystemFileAssociations\.bmp\Shell\3D Edit"
  108. RegDeleteKey "HKCR\SystemFileAssociations\.fbx\Shell\3D Edit"
  109. RegDeleteKey "HKCR\SystemFileAssociations\.gif\Shell\3D Edit"
  110. RegDeleteKey "HKCR\SystemFileAssociations\.jfif\Shell\3D Edit"
  111. RegDeleteKey "HKCR\SystemFileAssociations\.jpe\Shell\3D Edit"
  112. RegDeleteKey "HKCR\SystemFileAssociations\.jpeg\Shell\3D Edit"
  113. RegDeleteKey "HKCR\SystemFileAssociations\.jpg\Shell\3D Edit"
  114. RegDeleteKey "HKCR\SystemFileAssociations\.png\Shell\3D Edit"
  115. RegDeleteKey "HKCR\SystemFileAssociations\.tif\Shell\3D Edit"
  116. RegDeleteKey "HKCR\SystemFileAssociations\.tiff\Shell\3D Edit"
  117. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}"
  118. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}"
  119. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}"
  120. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}"
  121. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}"
  122. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}"
  123. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}"
  124. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}"
  125. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}"
  126. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}"
  127. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}"
  128. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}"
  129. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}"
  130. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}"
  131. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}"
  132. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}"
  133. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}"
  134. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}"
  135. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}"
  136. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}"
  137. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}"
  138. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}"
  139. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}"
  140. RegDeleteKey "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}"
  141. RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum", "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}", "REG_DWORD", 1
  142. RegDeleteKey "HKCR\Drive\shellex\PropertySheetHandlers\{7988B573-EC89-11cf-9C00-00AA00A14F56}"
  143. RegDeleteKey "HKCR\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}"
  144. RegWrite "HKLM\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility", "HideInsiderPage", "REG_DWORD", 1
  145. RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance", "WakeUp", "REG_DWORD", 0
  146. RegWrite "HKCU\Control Panel\Desktop", "HungAppTimeout", "REG_SZ", "1000"
  147. RegWrite "HKU\.DEFAULT\Control Panel\Desktop", "HungAppTimeout", "REG_SZ", "1000"
  148. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "MaxCachedIcons", "REG_SZ", "8192"
  149. RegWrite "HKCU\Control Panel\Desktop", "MenuShowDelay", "REG_SZ", "1"
  150. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters", "Type", "REG_SZ", "NoSync"
  151. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\tzautoupdate", "Start", "REG_DWORD", 4
  152. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo", "Enabled", "REG_DWORD", 0
  153. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl", "AutoReboot", "REG_DWORD", 0
  154. RegWrite "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Settings\AllowOnlineTips", "value", "REG_DWORD", 0
  155. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "AllowOnlineTips", "REG_DWORD", 0
  156. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\ScheduledDiagnostics", "EnabledExecution", "REG_DWORD", 0
  157. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat", "DisableUAR", "REG_DWORD", 1
  158. RegWrite "HKLM\SOFTWARE\Microsoft\WcmSvc\Tethering", "RemoteStartupDisabled", "REG_DWORD", 1
  159. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting", "Disabled", "REG_DWORD", 1
  160. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\PenWorkspace", "PenWorkspaceAppSuggestionsEnabled", "REG_DWORD", 0
  161. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Device performance and health", "UILockdown", "REG_DWORD", 1
  162. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Family options", "UILockdown", "REG_DWORD", 1
  163. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ShowSyncProviderNotifications", "REG_DWORD", 0
  164. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ShowSecondsInSystemClock", "REG_DWORD", 1
  165. RegWrite "HKCU\Control Panel\Desktop", "JPEGImportQuality", "REG_DWORD", 100
  166. RegDeleteKey "HKCR\Windows.IsoFile\shell\burn"
  167. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoNetConnectDisconnect", "REG_DWORD", 1
  168. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoNetConnectDisconnect", "REG_DWORD", 1
  169. RegDeleteKey "HKCR\Folder\ShellEx\ContextMenuHandlers\Library Location"
  170. RegDeleteKey "HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\Library Location"
  171. RegWrite "HKCR\Drive\shell\encrypt-bde", "LegacyDisable", "REG_SZ", ""
  172. RegWrite "HKCR\Drive\shell\encrypt-bde-elev", "LegacyDisable", "REG_SZ", ""
  173. RegWrite "HKCR\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\ShellEdit", "ProgrammaticAccessOnly", "REG_SZ", ""
  174. RegWrite "HKCU\SOFTWARE\Microsoft\Siuf\Rules", "NumberOfSIUFInPeriod", "REG_DWORD", 0
  175. RegDelete "HKCU\SOFTWARE\Microsoft\Siuf\Rules", "PeriodInNanoSeconds"
  176. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarBadges", "REG_DWORD", 0
  177. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SilentInstalledAppsEnabled", "REG_DWORD", 0
  178. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SoftLandingEnabled", "REG_DWORD", 0
  179. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SystemPaneSuggestionsEnabled", "REG_DWORD", 0
  180. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "Start_TrackProgs", "REG_DWORD", 0
  181. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-338388Enabled", "REG_DWORD", 0
  182. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore", "AutoDownload", "REG_DWORD", 2
  183. RegWrite "HKLM\SYSTEM\Maps", "AutoUpdateEnabled", "REG_DWORD", 0
  184. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications", "GlobalUserDisabled", "REG_DWORD", 1
  185. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Search", "BackgroundAppGlobalToggle", "REG_DWORD", 0
  186. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata", "PreventDeviceMetadataFromNetwork", "REG_DWORD", 1
  187. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceSetup", "CostedNetworkPolicy", "REG_DWORD", 0
  188. RegWrite "HKLM\SYSTEM\Maps", "UpdateOnlyOnWifi", "REG_DWORD", 1
  189. RegWrite "HKLM\SOFTWARE\Microsoft\WlanSvc\AnqpCache", "OsuRegistrationStatus", "REG_DWORD", 0
  190. RegWrite "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows", "LegacyDefaultPrinterMode", "REG_DWORD", 1
  191. RegWrite "HKCU\SOFTWARE\Microsoft\Shell\USB", "NotifyOnUsbErrors", "REG_DWORD", 0
  192. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "Start_TrackDocs", "REG_DWORD", 0
  193. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-338393Enabled", "REG_DWORD", 0
  194. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-353694Enabled", "REG_DWORD", 0
  195. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-353696Enabled", "REG_DWORD", 0
  196. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Accessibility", "Enabled", "REG_DWORD", 0
  197. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\BrowserSettings", "Enabled", "REG_DWORD", 0
  198. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Credentials", "Enabled", "REG_DWORD", 0
  199. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language", "Enabled", "REG_DWORD", 0
  200. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Personalization", "Enabled", "REG_DWORD", 0
  201. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Windows", "Enabled", "REG_DWORD", 0
  202. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\StartLayout", "Enabled", "REG_DWORD", 0
  203. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\DesktopTheme", "Enabled", "REG_DWORD", 0
  204. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Privacy", "TailoredExperiencesWithDiagnosticDataEnabled", "REG_DWORD", 0
  205. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-338389Enabled", "REG_DWORD", 0
  206. RegWrite "HKCU\Software\Microsoft\Games", "EnableXBGM", "REG_DWORD", 0
  207. RegWrite "HKCU\Control Panel\International\User Profile", "HttpAcceptLanguageOptOut", "REG_DWORD", 1
  208. RegWrite "HKCR\VBSFile\Shell\runas", "HasLUAShield", "REG_SZ", ""
  209. RegWrite "HKCR\VBSFile\Shell\runas\command", "", "REG_EXPAND_SZ", """%SystemRoot%\System32\WScript.exe"" ""%1"" %*"
  210. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager", "AutoChkTimeOut", "REG_DWORD", 0
  211. RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "EnableQuickReboot", "REG_SZ", "1"
  212. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "LargeSystemCache", "REG_DWORD", 1
  213. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "NoNetCrawling", "REG_DWORD", 1
  214. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoRemoteRecursiveEvents", "REG_DWORD", 1
  215. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem", "NtfsMemoryUsage", "REG_DWORD", 2
  216. RegWrite "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "ParseAutoexec", "REG_SZ", "0"
  217. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState", "FullPath", "REG_DWORD", 1
  218. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "ContentDeliveryAllowed", "REG_DWORD", 0
  219. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "OemPreInstalledAppsEnabled", "REG_DWORD", 0
  220. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "PreInstalledAppsEnabled", "REG_DWORD", 0
  221. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "PreInstalledAppsEverEnabled", "REG_DWORD", 0
  222. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "RotatingLockScreenEnabled", "REG_DWORD", 0
  223. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\I/O System", "IoBlockLegacyFsFilters", "REG_DWORD", 1
  224. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection", "AllowDeviceNameInTelemetry", "REG_DWORD", 0
  225. RegWrite "HKLM\Software\Policies\Microsoft\MRT", "DontReportInfectionInformation", "REG_DWORD", 1
  226. RegWrite "HKLM\Software\Policies\Microsoft\Windows\AppCompat", "DisableInventory", "REG_DWORD", 1
  227. RegWrite "HKLM\Software\Policies\Microsoft\SQMClient\Windows", "CEIPEnable", "REG_DWORD", 0
  228. RegWrite "HKLM\Software\Microsoft\Windows\Windows Error Reporting", "DontSendAdditionalData", "REG_DWORD", 1
  229. RegWrite "HKLM\Software\Policies\Microsoft\Windows\Windows Error Reporting", "Disabled", "REG_DWORD", 1
  230. RegWrite "HKLM\Software\Microsoft\PCHealth\ErrorReporting", "DoReport", "REG_DWORD", 0
  231. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\HandwritingErrorReports", "PreventHandwritingErrorReports", "REG_DWORD", 1
  232. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat", "AITEnable", "REG_DWORD", 0
  233. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "PreventDeviceMetadataFromSendingToMicrosoft", "REG_DWORD", 1
  234. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "DisableDiagnostics", "REG_DWORD", 1
  235. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "LimitAdvertizing", "REG_DWORD", 1
  236. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection\Consent", "AllowTelemetry", "REG_DWORD", 0
  237. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection\Consent", "EnhancedTelemetry", "REG_DWORD", 0
  238. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Feedback", "Disabled", "REG_DWORD", 1
  239. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "FeedbackSize", "REG_DWORD", 0
  240. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Privacy", "Telemetry", "REG_DWORD", 0
  241. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Privacy", "Feedback", "REG_DWORD", 0
  242. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "DisableConnectedUserExperienceTelemetry", "REG_DWORD", 1
  243. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System", "FeedbackToolEnabled", "REG_DWORD", 0
  244. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "DisableConnectedUserExperience", "REG_DWORD", 1
  245. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "DisableUsageTracking", "REG_DWORD", 1
  246. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer", "DisableWindowsFeedback", "REG_DWORD", 1
  247. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "LimitAdTracking", "REG_DWORD", 1
  248. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "SendFeedbackTelemetry", "REG_DWORD", 0
  249. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "AllowTelemetry", "REG_DWORD", 0
  250. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\System", "SendTelemetryOverride", "REG_DWORD", 0
  251. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors", "DisableSensors", "REG_DWORD", 1
  252. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors", "DisableWindowsLocationProvider", "REG_DWORD", 1
  253. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "hidden", "REG_DWORD", 1
  254. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\VideoSettings", "DecreaseResolutionOnBattery", "REG_DWORD", 0
  255. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\VideoSettings", "AllowLowResolution", "REG_DWORD", 0
  256. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\VideoSettings", "EnableAutoEnhanceDuringPlayback", "REG_DWORD", 0
  257. RegWrite "HKCU\Software\Microsoft\TabletTip\1.7", "EnableAutocorrection", "REG_DWORD", 0
  258. RegWrite "HKCU\Software\Microsoft\TabletTip\1.7", "EnableSpellchecking", "REG_DWORD", 0
  259. RegWrite "HKCU\Software\Microsoft\TabletTip\1.7", "EnableTextPrediction", "REG_DWORD", 0
  260. RegWrite "HKCU\Software\Microsoft\TabletTip\1.7", "EnablePredictionSpaceInsertion", "REG_DWORD", 0
  261. RegWrite "HKCU\Software\Microsoft\TabletTip\1.7", "EnableDoubleTapSpace", "REG_DWORD", 0
  262. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarGlomLevel", "REG_DWORD", 2
  263. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "AutoShareWks", "REG_DWORD", 0
  264. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "AutoShareServer", "REG_DWORD", 0
  265. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR", "AppCaptureEnabled", "REG_DWORD", 0
  266. RegWrite "HKCU\System\GameConfigStore", "GameDVR_Enabled", "REG_DWORD", 0
  267. RegWrite "HKCU\SOFTWARE\Microsoft\GameBar", "UseNexusForGameBarEnabled", "REG_DWORD", 0
  268. RegWrite "HKCU\System\GameConfigStore", "GameDVR_FSEBehavior", "REG_DWORD", 2
  269. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications", "ToastEnabled", "REG_DWORD", 0
  270. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-310093Enabled", "REG_DWORD", 0
  271. RegWrite "HKCU\Software\Microsoft\TabletTip\1.7", "EnableInkingWithTouch", "REG_DWORD", 0
  272. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell", "UseWin32BatteryFlyout", "REG_DWORD", 1
  273. RegWrite "HKCU\Control Panel\Accessibility", "Warning Sounds", "REG_DWORD", 0
  274. RegWrite "HKCU\Control Panel\Accessibility", "Sound on Activation", "REG_DWORD", 0
  275. RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility", "Configuration", "REG_SZ", ""
  276. RegWrite "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Accessibility", "Configuration", "REG_SZ", ""
  277. RegWrite "HKCU\Software\Microsoft\ScreenMagnifier", "UseBitmapSmoothing", "REG_DWORD", 0
  278. RegWrite "HKCU\Software\Microsoft\ScreenMagnifier", "FollowMouse", "REG_DWORD", 0
  279. RegWrite "HKCU\Software\Microsoft\ScreenMagnifier", "FollowNarrator", "REG_DWORD", 0
  280. RegWrite "HKCU\Software\Microsoft\ScreenMagnifier", "FollowCaret", "REG_DWORD", 0
  281. RegWrite "HKCU\Software\Microsoft\ScreenMagnifier", "FollowFocus", "REG_DWORD", 0
  282. RegWrite "HKCU\Software\Microsoft\ScreenMagnifier", "FadeToMagIcon", "REG_DWORD", 0
  283. RegWrite "HKCU\Software\Microsoft\ScreenMagnifier", "Invert", "REG_DWORD", 0
  284. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarAppsVisibleInTabletMode", "REG_DWORD", 1
  285. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarAutoHideInTabletMode", "REG_DWORD", 0
  286. RegDeleteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List"
  287. RegDeleteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List"
  288. RegWrite "HKCU\Software\Microsoft\Narrator", "FollowInsertion", "REG_DWORD", 0
  289. RegWrite "HKCU\Software\Microsoft\Narrator", "NarratorCursorHighlight", "REG_DWORD", 0
  290. RegWrite "HKCU\Software\Microsoft\Narrator", "PlayAudioCues", "REG_DWORD", 0
  291. RegWrite "HKCU\Software\Microsoft\Narrator", "EchoWords", "REG_DWORD", 0
  292. RegWrite "HKCU\Software\Microsoft\Narrator", "EchoChars", "REG_DWORD", 0
  293. RegWrite "HKCU\Software\Microsoft\Narrator", "ReadHints", "REG_DWORD", 0
  294. RegWrite "HKCU\Software\Microsoft\Narrator", "IntonationPause", "REG_DWORD", 0
  295. RegWrite "HKCU\Software\Microsoft\Narrator", "FastKeyEntryEnabled", "REG_DWORD", 0
  296. RegWrite "HKCU\SOFTWARE\Microsoft\Narrator\NoRoam", "DuckAudio", "REG_DWORD", 0
  297. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers", "DisableAutoplay", "REG_DWORD", 1
  298. RegWrite "HKCR\VBEFile\Shell\runas", "HasLUAShield", "REG_SZ", ""
  299. RegWrite "HKCR\VBEFile\Shell\runas\command", "", "REG_EXPAND_SZ", """%SystemRoot%\System32\WScript.exe"" ""%1"" %*"
  300. RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DiskDiagnostics\FallbackPolicy", "EnabledScenarioExecutionLevel", "REG_DWORD", 0
  301. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "EnableAuthenticateUserSharing", "REG_DWORD", 1
  302. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ShowPreviewHandlers", "REG_DWORD", 0
  303. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ShowTaskViewButton", "REG_DWORD", 0
  304. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "SharingWizardOn", "REG_DWORD", 0
  305. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager", "EnthusiastMode", "REG_DWORD", 1
  306. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "HideMergeConflicts", "REG_DWORD", 0
  307. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "SMB1", "REG_DWORD", 0
  308. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "SMB2", "REG_DWORD", 0
  309. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "SMB3", "REG_DWORD", 0
  310. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscriptionsEnabled", "REG_DWORD", 0
  311. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance", "CreateEncryptedOnlyTickets", "REG_DWORD", 1
  312. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance", "fAllowFullControl", "REG_DWORD", 0
  313. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance", "fAllowToGetHelp", "REG_DWORD", 0
  314. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance", "MaxTicketExpiry", "REG_DWORD", 1
  315. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance", "MaxTicketExpiryUnits", "REG_DWORD", 0
  316. RegWrite "HKCR\VBSFile\Shell\Print", "LegacyDisable", "REG_DWORD", 1
  317. RegWrite "HKCR\VBEFile\Shell\Print", "LegacyDisable", "REG_DWORD", 1
  318. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders", "StateFlags", "REG_DWORD", 1
  319. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache", "StateFlags", "REG_DWORD", 1
  320. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Content Indexer Cleaner", "StateFlags", "REG_DWORD", 1
  321. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\D3D Shader Cache", "StateFlags", "REG_DWORD", 1
  322. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Delivery Optimization Files", "StateFlags", "REG_DWORD", 1
  323. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Device Driver Packages", "StateFlags", "REG_DWORD", 1
  324. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Diagnostic Data Viewer database files", "StateFlags", "REG_DWORD", 1
  325. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded Program Files", "StateFlags", "REG_DWORD", 1
  326. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\DownloadsFolder", "StateFlags", "REG_DWORD", 1
  327. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameNewsFiles", "StateFlags", "REG_DWORD", 1
  328. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameStatisticsFiles", "StateFlags", "REG_DWORD", 1
  329. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameUpdateFiles", "StateFlags", "REG_DWORD", 1
  330. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Internet Cache Files", "StateFlags", "REG_DWORD", 1
  331. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Language Pack", "StateFlags", "REG_DWORD", 1
  332. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Offline Pages Files", "StateFlags", "REG_DWORD", 1
  333. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Old ChkDsk Files", "StateFlags", "REG_DWORD", 1
  334. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Previous Installations", "StateFlags", "REG_DWORD", 1
  335. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Recycle Bin", "StateFlags", "REG_DWORD", 1
  336. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\RetailDemo Offline Content", "StateFlags", "REG_DWORD", 1
  337. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Service Pack Cleanup", "StateFlags", "REG_DWORD", 1
  338. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Setup Log Files", "StateFlags", "REG_DWORD", 1
  339. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\System error memory dump files", "StateFlags", "REG_DWORD", 1
  340. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\System error minidump files", "StateFlags", "REG_DWORD", 1
  341. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files", "StateFlags", "REG_DWORD", 1
  342. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Setup Files", "StateFlags", "REG_DWORD", 1
  343. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Sync Files", "StateFlags", "REG_DWORD", 1
  344. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache", "StateFlags", "REG_DWORD", 1
  345. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Update Cleanup", "StateFlags", "REG_DWORD", 1
  346. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Upgrade Discarded Files", "StateFlags", "REG_DWORD", 1
  347. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\User file versions", "StateFlags", "REG_DWORD", 1
  348. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Defender", "StateFlags", "REG_DWORD", 1
  349. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Error Reporting Files", "StateFlags", "REG_DWORD", 1
  350. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows ESD installation files", "StateFlags", "REG_DWORD", 1
  351. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Upgrade Log Files", "StateFlags", "REG_DWORD", 1
  352. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell", "ConvertibleSlateModePromptPreference", "REG_DWORD", 0
  353. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell", "TabletMode", "REG_DWORD", 0
  354. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell", "SignInMode", "REG_DWORD", 1
  355. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\PenWorkspace", "PenWorkspaceButtonDesiredVisibility", "REG_DWORD", 0
  356. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\fdc", "Start", "REG_DWORD", 4
  357. RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\flpydisk", "Start", "REG_DWORD", 4
  358. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortana", "REG_DWORD", 0
  359. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "ConnectedSearchUseWeb", "REG_DWORD", 0
  360. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortanaAboveLock", "REG_DWORD", 0
  361. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowSearchToUseLocation", "REG_DWORD", 0
  362. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "DisableWebSearch", "REG_DWORD", 1
  363. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "DoNotUseWebResults", "REG_DWORD", 1
  364. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications", "DisallowNotificationMirroring", "REG_DWORD", 1
  365. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications", "NoCloudApplicationNotification", "REG_DWORD", 1
  366. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications", "NoTileApplicationNotification", "REG_DWORD", 1
  367. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications", "NoToastApplicationNotification", "REG_DWORD", 1
  368. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications", "NoToastApplicationNotificationOnLockScreen", "REG_DWORD", 1
  369. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp", "Enabled", "REG_DWORD", 0
  370. RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MultitaskingView\AltTabViewHost", "Grid_backgroundPercent", "REG_DWORD", 20
  371. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideClock"
  372. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideSCANetwork"
  373. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideSCAPower"
  374. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideSCAVolume"
  375. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoAutoTrayNotify"
  376. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoTrayItemsDisplay"
  377. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  378. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideClock"
  379. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideSCANetwork"
  380. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideSCAPower"
  381. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "HideSCAVolume"
  382. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoAutoTrayNotify"
  383. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoTrayItemsDisplay"
  384. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  385. RegDelete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr"
  386. RegWriteKey "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
  387. RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr"
  388. RegWriteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
  389. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistrytools"
  390. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System"
  391. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistrytools"
  392. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System"
  393. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoViewContextMenu"
  394. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  395. RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoViewContextMenu"
  396. RegWriteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  397. RegDelete "HKCU\Software\Policies\Microsoft\Windows\System", "DisableCMD"
  398. RegWriteKey "HKCU\Software\Policies\Microsoft\Windows\System"
  399. RegDelete "HKLM\Software\Policies\Microsoft\Windows\System", "DisableCMD"
  400. RegWriteKey "HKLM\Software\Policies\Microsoft\Windows\System"
  401. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoControlPanel"
  402. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  403. RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoControlPanel"
  404. RegWriteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  405. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{E31EA727-12ED-4702-820C-4B6445F28E1A}"
  406. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  407. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{E31EA727-12ED-4702-820C-4B6445F28E1A}"
  408. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  409. RegDelete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}"
  410. RegWriteKey "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  411. RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}"
  412. RegWriteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  413. RegDeleteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}"
  414. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
  415. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  416. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
  417. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  418. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "UseOLEDTaskbarTransparency", "REG_DWORD", 1
  419. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\Dwm", "ForceEffectMode", "REG_DWORD", 1
  420. RegWrite "HKCU\SOFTWARE\Microsoft\Notepad", "iDefaultEncoding", "REG_DWORD", 1
  421. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "RotatingLockScreenOverlayEnabled", "REG_DWORD", 0
  422. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-338387Enabled", "REG_DWORD", 0
  423. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent", "DisableWindowsConsumerFeatures", "REG_DWORD", 1
  424. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\MpEngine", "MpEnablePus", "REG_DWORD", 1
  425. RegWrite "HKCU\Control Panel\Desktop", "PaintDesktopVersion", "REG_DWORD", 1
  426. RegWrite "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings", "PauseUpdatesExpiryTime", "REG_SZ", "2099-11-11T16:38:59Z"
  427. RegWrite "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings", "PauseFeatureUpdatesEndTime", "REG_SZ", "2099-11-11T11:11:11Z"
  428. RegWrite "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings", "PauseQualityUpdatesEndTime", "REG_SZ", "2099-11-11T11:11:11Z"
  429. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons", "29", "REG_SZ", "C:\Windows\blank.ico"
  430. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons", "77", "REG_SZ", "C:\Windows\W10MImageRes.dll,121"
  431. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "FeatureSettingsOverride", "REG_DWORD", 3
  432. RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "FeatureSettingsOverrideMask", "REG_DWORD", 3
  433. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings", "DownloadMode", "REG_SZ", "0"
  434. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings", "UploadLimitGBMonth", "REG_SZ", "5"
  435. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings", "UpRatePctBandwidth", "REG_SZ", "5"
  436. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings", "DownloadRateBackgroundPct", "REG_SZ", "5"
  437. RegWrite "HKCU\Software\Microsoft\ColorFiltering", "Active", "REG_DWORD", 0
  438. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP", "RomeSdkChannelUserAuthzPolicy", "REG_DWORD", 0
  439. RegWrite "HKCU\Software\Intel\Display\igfxcui\HotKeys", "Enable", "REG_DWORD", 0
  440. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching", "DontSearchWindowsUpdate", "REG_DWORD", 1
  441. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching", "DriverUpdateWizardWuSearchEnabled", "REG_DWORD", 0
  442. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching", "SearchOrderConfig", "REG_DWORD", 0
  443. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching", "DontSearchWindowsUpdate", "REG_DWORD", 1
  444. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching", "DriverUpdateWizardWuSearchEnabled", "REG_DWORD", 0
  445. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching", "SearchOrderConfig", "REG_DWORD", 0
  446. RegWrite "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Update", "ExcludeWUDriversInQualityUpdate", "REG_DWORD", 1
  447. RegWrite "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Update", "ExcludeWUDriversInQualityUpdate", "REG_DWORD", 1
  448. RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "ExcludeWUDriversInQualityUpdate", "REG_DWORD", 1
  449. RegWrite "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Update\ExcludeWUDriversInQualityUpdate", "value", "REG_DWORD", 1
  450. RegWrite "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings", "ExcludeWUDriversInQualityUpdate", "REG_DWORD", 1
  451. RegWrite "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\PolicyState", "ExcludeWUDrivers", "REG_DWORD", 1
  452. RegWrite "HKCU\Control Panel\International", "sTimeFormat", "REG_SZ", "HH:mm:ss tt"
  453. RegWrite "HKCU\Control Panel\International", "sShortTime", "REG_SZ", "HH:mm tt"
  454. RegDelete "HKLM\SYSTEM\CurrentControlSet\Policies\Microsoft\FVE", "FDVDenyWriteAccess"
  455. RegWriteKey "HKLM\SYSTEM\CurrentControlSet\Policies\Microsoft\FVE"
  456. RegDelete "HKLM\SOFTWARE\Policies\Microsoft\FVE", "RDVDenyCrossOrg"
  457. RegWriteKey "HKLM\SOFTWARE\Policies\Microsoft\FVE"
  458. RegDelete "HKLM\SYSTEM\CurrentControlSet\Policies\Microsoft\FVE", "RDVDenyWriteAccess"
  459. RegWriteKey "HKLM\SYSTEM\CurrentControlSet\Policies\Microsoft\FVE"
  460. RegDelete "HKCU\Software\Policies\Microsoft\MMC\{74246bfc-4c96-11d0-abef-0020af6b0b7a}", "Restrict_Run"
  461. RegWriteKey "HKCU\Software\Policies\Microsoft\MMC\{74246bfc-4c96-11d0-abef-0020af6b0b7a}"
  462. RegDelete "HKLM\Software\Policies\Microsoft\MMC\{74246bfc-4c96-11d0-abef-0020af6b0b7a}", "Restrict_Run"
  463. RegWriteKey "HKLM\Software\Policies\Microsoft\MMC\{74246bfc-4c96-11d0-abef-0020af6b0b7a}"
  464. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoRun"
  465. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  466. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoRun"
  467. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  468. RegDelete "HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies", "WriteProtect"
  469. RegWriteKey "HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies"
  470. RegDelete "HKCU\Software\Policies\Microsoft\Windows\RemovableStorageDevices", "Deny_All"
  471. RegWriteKey "HKCU\Software\Policies\Microsoft\Windows\RemovableStorageDevices"
  472. RegDelete "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices", "Deny_All"
  473. RegWriteKey "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices"
  474. RegDelete "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions", "DenyRemovableDevices"
  475. RegWriteKey "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions"
  476. RegDelete "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}", "Deny_Write"
  477. RegWriteKey "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}"
  478. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "TaskbarLockAll"
  479. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  480. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "TaskbarLockAll"
  481. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  482. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoTrayContextMenu"
  483. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  484. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoTrayContextMenu"
  485. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  486. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarSizeMove", "REG_DWORD", 0
  487. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDesktop"
  488. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  489. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDesktop"
  490. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  491. RegDeleteKey "HKCU\Software\Classes\CLSID\{3935ea0f-5756-4db1-8078-d2baf2f7b7b2}"
  492. RegDeleteKey "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{3935ea0f-5756-4db1-8078-d2baf2f7b7b2}"
  493. RegDelete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{3935ea0f-5756-4db1-8078-d2baf2f7b7b2}"
  494. RegWriteKey "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  495. RegDelete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx", "RestrictAppToSystemVolume"
  496. RegWriteKey "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx"
  497. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoWinKeys"
  498. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  499. RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoWinKeys"
  500. RegWriteKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  501. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{8BC668CF-7728-45BD-93F8-CF2B3B41D7AB}", "Value", "REG_SZ", "Deny"
  502. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{52079E78-A92B-413F-B213-E8FE35712E72}", "Value", "REG_SZ", "Deny"
  503. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{9231CB4C-BF57-4AF3-8C55-FDA7BFCC04C5}", "Value", "REG_SZ", "Deny"
  504. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Programs", "NoWindowsFeatures"
  505. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Programs"
  506. RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Programs", "NoWindowsFeatures"
  507. RegWriteKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Programs"
  508. RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "REG_DWORD", 255
  509. RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun"
  510. RegWriteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  511. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E390DF20-07DF-446D-B962-F5C953062741}", "Value", "REG_SZ", "Deny"
  512. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}", "Value", "REG_SZ", "Deny"
  513. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E5323777-F976-4f5b-9B55-B94699C46E44}", "Value", "REG_SZ", "Deny"
  514. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}", "Value", "REG_SZ", "Deny"
  515. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{992AFA70-6F47-4148-B3E9-3003349C1548}", "Value", "REG_SZ", "Deny"
  516. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2EEF81BE-33FA-4800-9670-1CD474972C3F}", "Value", "REG_SZ", "Deny"
  517. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{A8804298-2D5F-42E3-9531-9C8C39EB29CE}", "Value", "REG_SZ", "Deny"
  518. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{D89823BA-7180-4B81-B50C-7E471E6121A3}", "Value", "REG_SZ", "Deny"
  519. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2297E4E2-5DBE-466D-A12B-0F8286F0D9CA}", "Value", "REG_SZ", "Deny"
  520. RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled", "Value", "REG_SZ", "Deny"
  521. RegWrite "HKCU\Control Panel\International", "sDate", "REG_SZ", "/"
  522. RegWrite "HKCU\Control Panel\International", "sLongDate", "REG_SZ", "d MMMM yyyy dddd"
  523. RegWrite "HKCU\Control Panel\International", "sShortDate", "REG_SZ", "d MMM yy ddd"
  524.  
  525. Function RegWrite(reg_keyname, reg_valuename,reg_type,ByVal reg_value)
  526. Dim aRegKey, Return
  527. aRegKey = RegSplitKey(reg_keyname)
  528. If IsArray(aRegKey) = 0 Then
  529. RegWrite = 0
  530. Exit Function
  531. End If
  532.  
  533. Return = RegWriteKey(aRegKey)
  534. If Return = 0 Then
  535. RegWrite = 0
  536. Exit Function
  537. End If
  538.  
  539. Select Case reg_type
  540. Case "REG_SZ"
  541. Return = objReg.SetStringValue(aRegKey(0),aRegKey(1),reg_valuename,reg_value)
  542. Case "REG_EXPAND_SZ"
  543. Return = objReg.SetExpandedStringValue(aRegKey(0),aRegKey(1),reg_valuename,reg_value)
  544. Case "REG_BINARY"
  545. If IsArray(reg_value) = 0 Then reg_value = Array()
  546. Return = objReg.SetBinaryValue(aRegKey(0),aRegKey(1),reg_valuename,reg_value)
  547.  
  548. Case "REG_DWORD"
  549. If IsNumeric(reg_value) = 0 Then reg_value = 0
  550. Return = objReg.SetDWORDValue(aRegKey(0),aRegKey(1),reg_valuename,reg_value)
  551.  
  552. Case "REG_MULTI_SZ"
  553. If IsArray(reg_value) = 0 Then
  554. If Len(reg_value) = 0 Then
  555. reg_value = Array()
  556. Else
  557. reg_value = Array(reg_value)
  558. End If
  559. End If
  560. Return = objReg.SetMultiStringValue(aRegKey(0),aRegKey(1),reg_valuename,reg_value)
  561.  
  562. 'Case "REG_QWORD"
  563. 'Return = oReg.SetQWORDValue(aRegKey(0),aRegKey(1),reg_valuename,reg_value)
  564. Case Else
  565. RegWrite = 0
  566. Exit Function
  567. End Select
  568.  
  569. If (Return <> 0) Or (Err.Number <> 0) Then
  570. RegWrite = 0
  571. Exit Function
  572. End If
  573. RegWrite = 1
  574. End Function
  575.  
  576. Function RegWriteKey(RegKeyName)
  577. Dim Return
  578. If IsArray(RegKeyName) = 0 Then
  579. RegKeyName = RegSplitKey(RegKeyName)
  580. End If
  581.  
  582. If (IsArray(RegKeyName) = 0) Or (UBound(RegKeyName) <> 1) Then
  583. RegWriteKey = 0
  584. Exit Function
  585. End If
  586.  
  587. Return = objReg.CreateKey(RegKeyName(0),RegKeyName(1))
  588. If (Return <> 0) Or (Err.Number <> 0) Then
  589. RegWriteKey = 0
  590. Exit Function
  591. End If
  592. RegWriteKey = 1
  593. End Function
  594.  
  595. Function RegDelete(reg_keyname, reg_valuename)
  596. Dim Return,aRegKey
  597. aRegKey = RegSplitKey(reg_keyname)
  598. If IsArray(aRegKey) = 0 Then
  599. RegDelete = 0
  600. Exit Function
  601. End If
  602.  
  603. Return = objReg.DeleteValue(aRegKey(0),aRegKey(1),reg_valuename)
  604. If (Return <> 0) And (Err.Number <> 0) Then
  605. RegDelete = 0
  606. Exit Function
  607. End If
  608. RegDelete = 1
  609. End Function
  610.  
  611. Function RegDeleteKey(reg_keyname)
  612. Dim Return,aRegKey
  613. aRegKey = RegSplitKey(reg_keyname)
  614. If IsArray(aRegKey) = 0 Then
  615. RegDeleteKey = 0
  616. Exit Function
  617. End If
  618.  
  619. 'On Error Resume Next
  620. Return = RegDeleteSubKey(aRegKey(0),aRegKey(1))
  621. 'On Error Goto 0
  622. If Return = 0 Then
  623. RegDeleteKey = 0
  624. Exit Function
  625. End If
  626. RegDeleteKey = 1
  627. End Function
  628.  
  629. Function RegDeleteSubKey(strRegHive, strKeyPath)
  630. Dim Return,arrSubkeys,strSubkey
  631. objReg.EnumKey strRegHive, strKeyPath, arrSubkeys
  632. If IsArray(arrSubkeys) <> 0 Then
  633. For Each strSubkey In arrSubkeys
  634. RegDeleteSubKey strRegHive, strKeyPath & "\" & strSubkey
  635. Next
  636. End If
  637.  
  638. Return = objReg.DeleteKey(strRegHive, strKeyPath)
  639. If (Return <> 0) Or (Err.Number <> 0) Then
  640. RegDeleteSubKey = 0
  641. Exit Function
  642. End If
  643. RegDeleteSubKey = 1
  644. End Function
  645.  
  646. Function RegSplitKey(RegKeyName)
  647. Dim strHive, strInstr, strLeft
  648. strInstr=InStr(RegKeyName,"\")
  649. If strInstr = 0 Then Exit Function
  650. strLeft=left(RegKeyName,strInstr-1)
  651.  
  652. Select Case strLeft
  653. Case "HKCR","HKEY_CLASSES_ROOT" strHive = &H80000000
  654. Case "HKCU","HKEY_CURRENT_USER" strHive = &H80000001
  655. Case "HKLM","HKEY_LOCAL_MACHINE" strHive = &H80000002
  656. Case "HKU","HKEY_USERS" strHive = &H80000003
  657. Case "HKCC","HKEY_CURRENT_CONFIG" strHive = &H80000005
  658. Case Else Exit Function
  659. End Select
  660.  
  661. RegSplitKey = Array(strHive,Mid(RegKeyName,strInstr+1))
  662. End Function
  663.  
  664. Function RequireAdmin()
  665. Dim reg_valuename, WShell, Cmd, CmdLine, I
  666.  
  667. GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")_
  668. .EnumValues &H80000003, "S-1-5-19\Environment", reg_valuename
  669. If IsArray(reg_valuename) <> 0 Then
  670. RequireAdmin = 1
  671. Exit Function
  672. End If
  673.  
  674. Set Cmd = WScript.Arguments
  675. For I = 0 to Cmd.Count - 1
  676. If Cmd(I) = "/admin" Then
  677. Wscript.Echo "To script you must have administrator rights!"
  678. 'RequireAdmin = 0
  679. 'Exit Function
  680. WScript.Quit
  681. End If
  682. CmdLine = CmdLine & Chr(32) & Chr(34) & Cmd(I) & Chr(34)
  683. Next
  684. CmdLine = CmdLine & Chr(32) & Chr(34) & "/admin" & Chr(34)
  685.  
  686. Set WShell= WScript.CreateObject( "WScript.Shell")
  687. CreateObject("Shell.Application").ShellExecute WShell.ExpandEnvironmentStrings(_
  688. "%SystemRoot%\System32\WScript.exe"),Chr(34) & WScript.ScriptFullName & Chr(34) & CmdLine, "", "runas"
  689. WScript.Quit
  690. End Function