Advertisement
Cogger

I0-RegKey-Modifications.ps1

Jun 13th, 2022
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################################################################################################################
  2. #=====[ RegKey Modifications ]=====#
  3. ########################################################################################################################
  4.  
  5. # ================ Login ================
  6. # Disable first time logon animation
  7. New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -name 'EnableFirstLogonAnimation' -PropertyType DWORD -Value 0 -Force -EA SilentlyContinue
  8. # Disable the     New Lock Screen and Disables the shade up effects
  9.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization" -Name "NoLockScreen" -Type DWord -Value 1 -Force -EA SilentlyContinue
  10. # Disable Users On Login Screen
  11.     New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "dontdisplaylastusername" -Type DWord -Value  1
  12. # Disable Lockscreen suggestions, rotating pictures
  13.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SoftLandingEnabled" -Value 0 -Force -EA SilentlyContinue -EA SilentlyContinue
  14.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "RotatingLockScreenEnabled" -Value 0 -Force -EA SilentlyContinue -EA SilentlyContinue
  15.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "RotatingLockScreenOverlayEnabled" -Value 0 -Force -EA SilentlyContinue -EA SilentlyContinue
  16. #Disallow Cortana on lock screen
  17.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Type DWord "AllowCortanaAboveLock" -Value 0 -Force -EA SilentlyContinue
  18.  
  19. # ================ Explorer / General ================
  20. # Disable Activity History and Timeline
  21.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableActivityFeed" -Type DWord -Value 0 -Force -EA SilentlyContinue
  22.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "PublishUserActivities" -Type DWord -Value 0 -Force -EA SilentlyContinue
  23.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "UploadUserActivities" -Type DWord -Value 0 -Force -EA SilentlyContinue
  24. # Show File Operation Details
  25.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" | Out-Null -EA SilentlyContinue
  26.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Name "EnthusiastMode" -Type DWord -Value 1 -Force -EA SilentlyContinue
  27. # Change Default View to this PC
  28.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1 -Force -EA SilentlyContinue
  29. # Disable 3D Objects Icon
  30.     Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Force -EA SilentlyContinue
  31. # Disable History View
  32.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "HistoryViewEnabled" -Type DWord -Value  0 -Force -EA SilentlyContinue
  33. <# # Remove Downloads library from My PC
  34. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{088e3905-0323-4b02-9826-5d99428e115f}" -Force
  35. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{374DE290-123F-4565-9164-39C4925E467B}" -Force
  36. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{088e3905-0323-4b02-9826-5d99428e115f}" -Force
  37. # Remove Pictures library from My PC
  38. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" -Force
  39. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" -Force
  40. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" -Force
  41. # Remove Music library from My PC
  42. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" -Force
  43. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" -Force
  44. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" -Force
  45. # Remove Desktop library from My PC
  46. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" -Force
  47. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" -Force
  48. # Remove Documents library from My PC
  49. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{d3162b92-9365-467a-956b-92703aca08af}" -Force
  50. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" -Force
  51. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{d3162b92-9365-467a-956b-92703aca08af}" -Force
  52. # Remove Videos library from My PC
  53. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" -Force
  54. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{A0953C92-50DC-43bf-BE83-3742FED03C9C}" -Force
  55. Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" -Force #>
  56. # Remove 3D Objects library from My PC
  57.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Force -EA SilentlyContinue
  58.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"  -Name "{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Force -EA SilentlyContinue
  59. # Removes the shake to minimize all other windows getures
  60.     Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking" -Type DWord -Value  1
  61.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneShowAllFolders" -Type DWord -Value 0 -Force -EA SilentlyContinue
  62.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value  1
  63.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0 -Force -EA SilentlyContinue
  64.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Hidden" -Type DWord -Value  1
  65.     Remove-Item -Path "HKEY_CLASSES_ROOT\CABFolder\CLSID" -EA SilentlyContinue
  66.     Remove-Item -Path "HKEY_CLASSES_ROOT\SystemFileAssociations\.cab\CLSID" -EA SilentlyContinue
  67.     Remove-Item -Path "HKEY_CLASSES_ROOT\CompressedFolder\CLSID" -EA SilentlyContinue
  68.     Remove-Item -Path "HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\CLSID" -EA SilentlyContinue
  69. # Remove OneDrive from the Explorer Side Panel
  70.     Set-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name "System.IsPinnedToNameSpaceTree" -Type DWord -Value  0
  71. # Show hidden files in Windows Explorer
  72.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSuperHidden" -Type DWord -Value 1 -Force -EA SilentlyContinue
  73. # Remove the Open with Paint 3D from the explorer context menu
  74.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.bmp\Shell\3D Edit"  -Force -EA SilentlyContinue
  75.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.jpeg\Shell\3D Edit"  -Force -EA SilentlyContinue
  76.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.jpe\Shell\3D Edit"  -Force -EA SilentlyContinue
  77.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\3D Edit"  -Force -EA SilentlyContinue
  78.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.png\Shell\3D Edit"  -Force -EA SilentlyContinue
  79.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.gif\Shell\3D Edit"  -Force -EA SilentlyContinue
  80.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.tif\Shell\3D Edit"  -Force -EA SilentlyContinue
  81.     Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.tiff\Shell\3D Edit"  -Force -EA SilentlyContinue
  82. # Removes Paint3D from the context menu
  83.     Remove-Item -Path "HKCR:\SystemFileAssociations\.3mf\Shell\3D Edit"  -Force -EA SilentlyContinue
  84.     Remove-Item -Path "HKCR:\SystemFileAssociations\.bmp\Shell\3D Edit"  -Force -EA SilentlyContinue
  85.     Remove-Item -Path "HKCR:\SystemFileAssociations\.fbx\Shell\3D Edit"  -Force -EA SilentlyContinue
  86.     Remove-Item -Path "HKCR:\SystemFileAssociations\.gif\Shell\3D Edit"  -Force -EA SilentlyContinue
  87.     Remove-Item -Path "HKCR:\SystemFileAssociations\.jfif\Shell\3D Edit"  -Force -EA SilentlyContinue
  88.     Remove-Item -Path "HKCR:\SystemFileAssociations\.jpe\Shell\3D Edit"  -Force -EA SilentlyContinue
  89.     Remove-Item -Path "HKCR:\SystemFileAssociations\.jpeg\Shell\3D Edit"  -Force -EA SilentlyContinue
  90.     Remove-Item -Path "HKCR:\SystemFileAssociations\.jpg\Shell\3D Edit"  -Force -EA SilentlyContinue
  91.     Remove-Item -Path "HKCR:\SystemFileAssociations\.png\Shell\3D Edit"  -Force -EA SilentlyContinue
  92.     Remove-Item -Path "HKCR:\SystemFileAssociations\.tif\Shell\3D Edit"  -Force -EA SilentlyContinue
  93.     Remove-Item -Path "HKCR:\SystemFileAssociations\.tiff\Shell\3D Edit"  -Force -EA SilentlyContinue
  94. # Remove Edit with Paint 3D from context menu
  95.     Remove-Item -Path "HKCR:\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\ShellEdit"  -Force -EA SilentlyContinue
  96. # Do not track most used apps
  97.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_TrackProgs" -Type DWord -Value 0 -Force -EA SilentlyContinuex00000000 -Force
  98.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_TrackDocs" -Type DWord -Value 0 -Force -EA SilentlyContinuex00000000 -Force
  99. # Show File Extensions
  100.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0 -Force -EA SilentlyContinue
  101.  
  102. # ================ Explorer / Advanced ================
  103. # Disable UAC
  104.     New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name "EnableLUA" -PropertyType DWord -Value 0 -Force -EA SilentlyContinue
  105.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Type DWord -Value 0 -Force -EA SilentlyContinue
  106.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Type DWord -Value 0 -Force -EA SilentlyContinue
  107. # Disable Info bar prompting that Windows Search has been disasbled
  108.     Set-ItemProperty -Path "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "InfoBarsDisabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  109.     New-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer"
  110. # Disable Ads in File Explorer
  111.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Type DWord "ShowSyncProviderNotifications" -Value 0 -Force -EA SilentlyContinue
  112. # Add "Run as different user" to context menu
  113.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer"
  114.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "ShowRunasDifferentuserinStart"  -Type DWord -Value 1 -Force -EA SilentlyContinue
  115. # Show Full Path in the address bar
  116.     Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" -Name "FullPathAddress" -Type DWord -Value 1 -Force -EA SilentlyContinue
  117.  
  118. # ================ Privacy ================
  119. # Remove all content from auto logger Diagnostic Tracker
  120. Add-Content -Path 'C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl' -Value '' -EA SilentlyContinue
  121.     Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener"  -Name "Start" -Type DWord -Value 0 -Force -EA SilentlyContinue
  122.     Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\InfoBarsDisabled" "LocationNotIndexed"  -Type DWord -Value 1 -Force -EA SilentlyContinue
  123.     Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\InfoBarsDisabled" "ServerMSSNotInstalled"  -Type DWord -Value 1 -Force -EA SilentlyContinue
  124. # Disable Telemetry
  125.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 -Force -EA SilentlyContinue
  126.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 -Force -EA SilentlyContinue
  127.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 -Force -EA SilentlyContinue
  128. # Disable Location Tracking - global
  129.     New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Force | Out-Null
  130.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Name "Value" -Type String -Value "Deny"
  131.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" -Name "SensorPermissionState" -Type DWord -Value 0 -Force -EA SilentlyContinue
  132.     Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" -Name "Status" -Type DWord -Value 0 -Force -EA SilentlyContinue
  133. # Disable CEIP
  134.     New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\SQMClient'
  135.     New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\SQMClient\Windows'
  136.     New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\SQMClient\Windows' -Name "CEIPEnable" -Type DWord -Value 0 -Force -EA SilentlyContinue
  137. # Disable Antispyware
  138.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWORD  -Value 1 -Force -EA SilentlyContinue
  139. # Remove SecurityHealth from startup
  140.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SecurityHealth" -Force
  141.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" -Name "SecurityHealth" -Force
  142. # Turns off Windows blocking installation of files downloaded from the internet
  143.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments" -Name "SaveZoneInformation" -Type DWord -Value  1 -Force
  144.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments" -Name "SaveZoneInformation" -Type DWord -Value  1 -Force
  145. # Turn Off Microsoft Defender SmartScreen for Microsoft Store Apps in Windows 10
  146.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" -Name "EnableWebContentEvaluation" -Type DWord -Value 0 -Force -EA SilentlyContinue
  147. # Disable SmartScreen
  148.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "SmartScreenEnabled" -Type String -Value "Off" -Force
  149.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" -Name "ContentEvaluation" -Type DWord -Value 0 -Force -EA SilentlyContinue
  150. # Do not accept the policy
  151.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 -Force -EA SilentlyContinue
  152. # Enable diagnostic data viewer
  153.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack\EventTranscriptKey" -Type DWord "EnableEventTranscript" -Value 1 -Force -EA SilentlyContinue
  154.  
  155. # ================ Application ================
  156.     New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows' -Name CloudContent -EA SilentlyContinue
  157. # Disable services that are known to cause issues
  158.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe" -Name "Debugger" -Type String -Value "%windir%\System32\taskkill.exe" -EA SilentlyContinue
  159.     New-ItemProperty -Path "HKCU:\Control Panel\Desktop"  -Name "AutoEndTasks" -Value 0 -Force -EA SilentlyContinue
  160.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\xboxgip"  -Name "Start" -Value 4 -Force -EA SilentlyContinue
  161.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XboxGipSvc"  -Name "Start" -Value 4 -Force -EA SilentlyContinue
  162.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\CDPUserSvc"  -Name "Start" -Value 4 -Force -EA SilentlyContinue
  163.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\UnistoreSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
  164.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\UserDataSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
  165.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XblGameSave"  -Name "Start" -Value 4 -Force -EA SilentlyContinue
  166.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\WpnUserService" -Name "Start" -Value 4 -Force -EA SilentlyContinue
  167.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XboxNetApiSvc"  -Name "Start" -Value 4 -Force -EA SilentlyContinue
  168.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XblAuthManager"  -Name "Start" -Value 4 -Force -EA SilentlyContinue
  169.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\PimIndexMaintenanceSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
  170.     New-Item -Path "HKLM:\SYSTEM\ControlSet001\Control\WMI" -Name "AutoLogger" -Force -EA SilentlyContinue
  171. # Disable application suggestions
  172.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "OemPreInstalledAppsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  173.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  174.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEverEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  175.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SoftLandingEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  176.     Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  177.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338388Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  178. # Disable 'Get tips, tricks, suggestions as you use Windows'
  179.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338389Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  180.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-353698Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  181.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SystemPaneSuggestionsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  182.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -Type DWord -Value 1 -Force -EA SilentlyContinue
  183.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Type DWord "DisableWindowsSpotlightFeatures" -Value 1 -Force -EA SilentlyContinue
  184. # Microsoft pushing applications quietly into your profile
  185.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SilentInstalledAppsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  186.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "ContentDeliveryAllowed" -Type DWord -Value 0 -Force -EA SilentlyContinue
  187.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SubscribedContentEnabled" -Value 0 -Force -EA SilentlyContinue
  188. # Disable automatic maps update
  189.     Set-ItemProperty -Path "HKLM:\SYSTEM\Maps" -Name "AutoUpdateEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  190. # Disable background application access
  191.     Get-ChildItem -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" -Exclude "Microsoft.Windows.Cortana*" | ForEach {
  192.     Set-ItemProperty -Path $_.PsPath -Name "Disabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
  193.     Set-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -Type DWord -Value 1 -Force -EA SilentlyContinue}
  194. # Turn Off OneDrive
  195.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC" -Type DWord -Value 1 -Force -EA SilentlyContinue
  196.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSync" -Type DWord -Value 1 -Force -EA SilentlyContinue
  197. # Remove Background Tasks
  198.     Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y" -Recurse -ErrorAction SilentlyContinue
  199.     Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
  200.     Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe" -Recurse -ErrorAction SilentlyContinue
  201.     Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  202.     Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  203.     Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  204. # Remove Background Tasks Windows Files
  205.     Remove-Item "HKCR:\Extensions\ContractId\Windows.File\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
  206. #Registry keys to delete if they aren't uninstalled by RemoveAppXPackage/RemoveAppXProvisionedPackage
  207.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y" -Recurse -ErrorAction SilentlyContinue
  208.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
  209.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  210.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  211.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  212. #Scheduled Tasks to delete
  213.     Remove-Item "HKCR:\Extensions\ContractId\Windows.PreInstalledConfigTask\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe" -Recurse -ErrorAction SilentlyContinue
  214. #Windows Protocol Keys
  215.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
  216.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  217.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  218.     Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
  219. #Windows Share Target
  220.     Remove-Item "HKCR:\Extensions\ContractId\Windows.ShareTarget\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
  221. # Setting Mixed Reality Portal value to 0 so that you can uninstall it in Settings
  222.     Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Holographic' -Name 'FirstRunSucceeded' -Value 0 -Force -EA SilentlyContinue -Verbose
  223. # Preinstalled apps, Minecraft Twitter etc all that - still need a clean default start menu to fully eliminate
  224.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "PreInstalledAppsEnabled" -Value 0 -Force -EA SilentlyContinue
  225.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "PreInstalledAppsEverEnabled" -Value 0 -Force -EA SilentlyContinue
  226.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "OEMPreInstalledAppsEnabled" -Value 0 -Force -EA SilentlyContinue
  227. # Disable Xbox Game DVR
  228.     New-ItemProperty -Path "HKCU:\System\GameConfigStore" -Type DWord "GameDVR_Enabled" -Value 0 -Force -EA SilentlyContinue
  229. # Disable OneDrive startup run user settings
  230.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /T REG_BINARY /V "OneDrive" -Value 0 -Force -EA SilentlyContinue300000021B9DEB396D7D001
  231. # Disable automatic OneDrive desktop setup for     New accounts
  232.     Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "OneDriveSetup" -Force -EA SilentlyContinue
  233. # Disable Game Monitoring Service
  234.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\xbgm" -Type DWord "Start" -Value 4 -Force -EA SilentlyContinue
  235. # GameDVR local GP - Computer Config\Admin Templates\Windows Components\Windows Game Recording and Broadcasting
  236.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR" -Type DWord "AllowGameDVR" -Value 0 -Force -EA SilentlyContinue
  237. # Brave - Presets
  238. New-Item -Path "HKLM:\Software\Policies\BraveSoftware" -EA SilentlyContinue
  239. New-Item -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -EA SilentlyContinue
  240. New-Item -Path "HKLM:\Software\Policies\BraveSoftware\Brave\Recommended" -EA SilentlyContinue
  241. # Brave - Disable Saving Passwords HKLM
  242. New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -Name "PasswordManagerEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  243. # Brave - Disable AutoFill for credit cards HKLM
  244. New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave\Recommended" -Name "AutofillCreditCardEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  245. # Brave - Turn off Background mode HKLM
  246. New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave\Recommended" -Name "BackgroundModeEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  247. # Brave - Enable set Brave as default Browser HKLM
  248. New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -Name "DefaultBrowserSettingEnabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
  249. # Brave - Enable Bookmark Bar HKLM
  250. New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -Name "BookmarkBarEnabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
  251. # Chrome - Presets
  252. New-Item -Path "HKLM:\Software\Policies\Google" -EA SilentlyContinue
  253. New-Item -Path "HKLM:\Software\Policies\Google\Chrome" -EA SilentlyContinue
  254. New-Item -Path "HKLM:\Software\Policies\Google\Chrome\Recommended" -EA SilentlyContinue
  255. # Chrome - Disable Saving Passwords HKLM
  256. New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome" -Name "PasswordManagerEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  257. # Chrome - Disable AutoFill for credit cards HKLM
  258. New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome\Recommended" -Name "AutofillCreditCardEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  259. # Chrome - Turn off Background mode HKLM
  260. New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome\Recommended" -Name "BackgroundModeEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  261. # Chrome - Disable set Chrome as default Browser HKLM
  262. New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome" -Name "DefaultBrowserSettingEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  263. # Chrome - Enable Bookmark Bar HKLM
  264. New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome" -Name "BookmarkBarEnabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
  265.  
  266. # ================ Internet Explorer / Microsoft Edge ================
  267. # Disable Internet Explorer first time run start requirements
  268.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Value 2 -Force -EA SilentlyContinue
  269. # Disable Microsoft Edge first time run start requirements
  270.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft" -Name "MicrosoftEdge"
  271.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge" -Name "Main"
  272.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" -Type DWord  -Name AllowPrelaunch -Value 0 -Force -EA SilentlyContinue
  273.         reg load HKLM\Default_User C:\Users\Default\NTUSER.DAT
  274. # Do not track - Edge
  275.     New-ItemProperty -Path "HKCU:\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main" -Type DWord "DoNotTrack" -Value 1 -Force -EA SilentlyContinue
  276. # Do not track - IE
  277.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Internet Explorer\Main" -Type DWord "DoNotTrack" -Value 1 -Force -EA SilentlyContinue
  278. # Disable Edge desktop shortcut
  279.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Type DWord "DisableEdgeDesktopShortcutCreation" -Value 1 -Force -EA SilentlyContinue
  280.  
  281. # ================ Search / Cortana ================
  282. # Disable Windows Search
  283.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
  284.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Force | Out-Null -EA SilentlyContinue
  285.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Force | Out-Null -EA SilentlyContinue
  286.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null -EA SilentlyContinue
  287.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null -EA SilentlyContinue
  288.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"  -Name "AllowCortana" -Value 0 -Force -EA SilentlyContinue
  289.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 -Force -EA SilentlyContinue
  290.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1 -Force -EA SilentlyContinue
  291.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1 -Force -EA SilentlyContinue
  292.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0 -Force -EA SilentlyContinue
  293.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0 -Force -EA SilentlyContinue
  294. # Dont Search the web or display web results
  295.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "ConnectedSearchUseWeb" -Type DWord -Value 0 -Force -EA SilentlyContinue
  296. # Dont allow search to use location
  297.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "AllowSearchToUseLocation" -Type DWord -Value 0 -Force -EA SilentlyContinue
  298. # Disable Search Suggestions
  299.     New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableSearchBoxSuggestions" -Type DWord -Value  1
  300. # Disable Voice Activation
  301.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Preferences" -Name "VoiceActivationDefaultOn" -Type DWord -Value 0 -Force -EA SilentlyContinue
  302.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" -Name "DisableVoice" -Type DWord -Value  1
  303.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Preferences" -Name "ModelDownloadAllowed" -Type DWord -Value 0 -Force -EA SilentlyContinue
  304. # Disable Voice Activation at lockscreen
  305.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Preferences" -Name "VoiceActivationEnableAboveLockscreen" -Type DWord -Value 0 -Force -EA SilentlyContinue
  306. # Do not allow indexing on Encrypted Store or Items
  307.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowIndexingEncryptedStoresOrItems" -Type DWord -Value 0 -Force -EA SilentlyContinue
  308. # Disable SafeSearch in the search menu
  309.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\SearchSettings" -Name "SafeSearchMode" -Type DWord -Value 0 -Force -EA SilentlyContinue
  310. # Disable other Search settings
  311.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AlwaysUseAutoLangDetection" -Type DWord -Value 0 -Force -EA SilentlyContinue
  312.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "HasAboveLockTips" -Type DWord -Value 0 -Force -EA SilentlyContinue
  313.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "ConnectedSearchUseWebOverMeteredConnections" -Type DWord -Value 0 -Force -EA SilentlyContinue
  314.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCloudSearch" -Type DWord -Value 0 -Force -EA SilentlyContinue
  315.  
  316. # ================ Start Menu ================
  317. # Disable Bing search
  318.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  319.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Type DWord -Value 0 -Force -EA SilentlyContinue
  320.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
  321.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -Type DWord -Value 1 -Force -EA SilentlyContinue
  322. # Disable Cortana in ambient mode
  323.     New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaInAmbientMode" -Type DWord -Value 0 -Force -EA SilentlyContinue
  324. # Disable live tiles
  325.     New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications' -EA SilentlyContinue
  326.     New-ItemProperty 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications' -Name 'NoTileApplicationNotification' -Type DWord -Value 1 -Force -EA SilentlyContinue
  327. # Removing CloudStore
  328.     Remove-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore' -Recurse -Force
  329. # Disable Cortana
  330.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Type DWord "CortanaEnabled" -Value 0 -Force -EA SilentlyContinue
  331.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Type DWord "CanCortanaBeEnabled" -Value 0 -Force -EA SilentlyContinue
  332.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Type DWord "DeviceHistoryEnabled" -Value 0 -Force -EA SilentlyContinue
  333. # Disable Tiles
  334.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen" -Name "TileMigrated" -Type DWord -Value 0 -Force -EA SilentlyContinue
  335. # Change Start Menu Speed
  336.     Set-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name MenuShowDelay -Value 20 -Force -EA SilentlyContinue
  337. # Change Time to Holocene
  338.     New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sTimeFormat" -Type String -Value "HH:mm:ss" -Force -EA SilentlyContinue
  339.     New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sShortTime" -Type String -Value "HH:mm" -Force -EA SilentlyContinue
  340.     New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sLongDate" -Type String -Value "dddd, dd MMMM, 1yyyy" -Force -EA SilentlyContinue
  341.     New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sShortDate" -Type String -Value "dd-MMM-1yyyy" -Force -EA SilentlyContinue
  342.  
  343. # ================ Task Manager ================
  344.     Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue
  345. # Always show all tray Icons in windows
  346.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 0 -Force -EA SilentlyContinue
  347.  
  348. # ================ Taskbar  ================
  349. # Hide Task View Button
  350.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 0 -Force -EA SilentlyContinue
  351. # Hide People Icon
  352.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" | Out-Null -EA SilentlyContinue
  353. Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 0 -Force -EA SilentlyContinue
  354. # Disable Taskbar or Search box
  355. Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 0 -Force -EA SilentlyContinue
  356. # Disable action center
  357.     New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" | Out-Null -EA SilentlyContinue
  358. Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1 -Force -EA SilentlyContinue
  359. Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  360. # Dont show My People notifications
  361.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People\ShoulderTap" -Type DWord "ShoulderTap" -Value 0 -Force -EA SilentlyContinue
  362. # Disable "Meet Now" taskbar button
  363.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Type DWord "HideSCAMeetNow" -Value 1 -Force -EA SilentlyContinue
  364. # Enable Small icons
  365.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSmallIcons" -Type DWord -Value 1 -Force -EA SilentlyContinue
  366. # Group Windows - Always combine
  367.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarGlomLevel" -Type DWord -Value 0 -Force -EA SilentlyContinue
  368. # Hide Cortana on the Task bar
  369.     Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCortanaButton" -Type DWord -Value 0 -Force -EA SilentlyContinue
  370. # Disable News and Interests
  371.     Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2 -Force -EA SilentlyContinue
  372.  
  373. # ================ Microsoft Feedback ================
  374. # Disable Microsoft Consumer Experience
  375.     New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\' -Name CloudContent -EA SilentlyContinue
  376.     New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent' -name 'DisableWindowsConsumerFeatures' -PropertyType DWORD -Value 1 -Force -EA SilentlyContinue
  377. # Disable feedback
  378.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf" -Force | Out-Null -EA SilentlyContinue
  379.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Force | Out-Null -EA SilentlyContinue
  380.     New-Item -Path "HKCU:\Software\Microsoft\Siuf\Rules\PeriodInNanoSeconds" -Force | Out-Null -EA SilentlyContinue
  381.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Name "NumberOfSIUFInPeriod" -Type DWord -Value 0 -Force -EA SilentlyContinue
  382.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "DoNotShowFeedbackNotifications" -Type DWord -Value 1 -Force -EA SilentlyContinue
  383.     New-ItemProperty -Path 'HKCU:\Software\Microsoft\Siuf\Rules' -Name "NumberOfSIUFInPeriod" -PropertyType DWord -Value 0 -Force -EA SilentlyContinue
  384.     New-ItemProperty -Path 'HKCU:\Software\Microsoft\Siuf\Rules\PeriodInNanoSeconds' -Name 'PeriodInNanoSeconds' -PropertyType DWord -Value 0 -Force -EA SilentlyContinue -Verbose
  385. # Disable tailored feedback
  386.     New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Force | Out-Null -EA SilentlyContinue
  387.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableTailoredExperiencesWithDiagnosticData" -Type DWord -Value 1 -Force -EA SilentlyContinue
  388. # Disable advertising ID
  389.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" | Out-Null -EA SilentlyContinue
  390.     Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo' -Name 'Enabled' -Value 0 -Force -EA SilentlyContinue -Verbose
  391.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Name "DisabledByGroupPolicy" -Type DWord -Value 1 -Force -EA SilentlyContinue
  392.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value  1
  393.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion"  -Name "Device Metadata" -Force
  394. # Disable error reporting
  395.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name "Disabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
  396. # Disable Remote Assitance
  397.     Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance" -Name "fAllowToGetHelp" -Type DWord -Value 0 -Force -EA SilentlyContinue
  398. # Disable Storage Sense
  399.     Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" -Recurse -ErrorAction SilentlyContinue
  400. # Disable Creation of Crash Dumps that are sent to Microsoft
  401.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl" -Name "CrashDumpEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  402. # Disable File Samples to Analysis
  403.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet"
  404.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Name "SubmitSamplesConsent" -Type DWord -Value 2
  405. # Disable System Settings Sync
  406.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\SettingSync" -Name "DisableSettingSync" -Type DWord -Value  2 -Force
  407.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\SettingSync" -Name "DisableSettingSyncUserOverride" -Type DWord -Value  1 -Force
  408. # Do not automatically encrypt files moved to encrypted folders
  409.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\EnhancedStorageDevices" -Name "TCGSecurityActivationDisabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  410. # Do not uese Certificate Rules on Windows Executables for Software Restriction Policies
  411.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\safer\codeidentifiers" -Name "authenticodeenabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  412. # Do not send Error Reporting Additional Data
  413.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name "DontSendAdditionalData" -Type DWord -Value 1 -Force -EA SilentlyContinue
  414. # Restrict Handwriting information being sent to Microsoft
  415.     New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value  1  -EA SilentlyContinue
  416.     New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value  1  -EA SilentlyContinue
  417.     New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 -Force -EA SilentlyContinue
  418.     New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0 -Force -EA SilentlyContinue
  419. # Disable Tailored experiences - Diagnostics & Feedback settings
  420.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy" -Type DWord "TailoredExperiencesWithDiagnosticDataEnabled" -Value 0 -Force -EA SilentlyContinue
  421. # Speech language sync
  422.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language" -Type DWord "Enabled" -Value 0 -Force -EA SilentlyContinue
  423. # Do not improve inking & typing recognition
  424.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Input\TIPC" -Type DWord "Enabled" -Value 0 -Force -EA SilentlyContinue
  425. # Pen & Windows Ink - Show recommended app suggestions
  426.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace" -Type DWord "PenWorkspaceAppSuggestionsEnabled" -Value 0 -Force -EA SilentlyContinue
  427. # Do not Show My People app suggestions
  428.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SubscribedContent-314563Enabled" -Value 0 -Force -EA SilentlyContinue
  429. # Turn off Computer Maintenance (System Maintenance) (Determines whether scheduled diagnostics will run to proactively detect and resolve system problems.)
  430.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\ScheduledDiagnostics" -Name "EnabledExecution" -Type DWord -Value 0 -Force -EA SilentlyContinue
  431.  
  432. # ================ Power Settings ================
  433. # Disable Hibernation
  434.     Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session Manager\Power" -Name "HibernteEnabled" -Type Dword -Value 0 -Force -EA SilentlyContinue
  435.     Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name "ShowHibernateOption" -Type Dword -Value 0 -Force -EA SilentlyContinue
  436.  
  437. # ================ Control Panel ================
  438. # Dont show suggested content in settings
  439.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"  -Type Dword -Name  "SubscribedContent-338393Enabled" -Value 0 -Force -EA SilentlyContinue
  440.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"  -Type Dword -Name  "SubscribedContent-353694Enabled" -Value 0 -Force -EA SilentlyContinue
  441. # Do Not Show suggestions occasionally
  442.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"  -Type Dword -Name  "SubscribedContent-338388Enabled" -Value 0 -Force -EA SilentlyContinue
  443.     New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "controlpanel"
  444.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\controlpanel" -Name "StartupPage" -Type DWord -Value  1 -Force -EA SilentlyContinue
  445. # Set Icons in Control Panel to small
  446.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\controlpanel" -Name "AllItemsIconView" -Type DWord -Value  1 -Force -EA SilentlyContinue
  447.  
  448. # ================ Personalization ================
  449. # Enable Darkmode
  450.     Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "AppsUseLightTheme" -Value 0 -Force -EA SilentlyContinue
  451. # Disable phone pairing
  452.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\SmartGlass" -Type DWord "UserAuthPolicy" -Value 0 -Force -EA SilentlyContinue
  453. # Decrease Shutdown time
  454.     New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "WaitToKillAppTimeOut" -Type String -Value "2000" -Force -EA SilentlyContinue
  455.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "WaitToKillServiceTimeout" -Type String -Value "2000" -Force -EA SilentlyContinue
  456.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "HungAppTimeout" -Type String -Value "2000" -Force -EA SilentlyContinue
  457.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "AutoEndTasks" -Type String -Value "1" -Force -EA SilentlyContinue
  458. # Disable "Let Windows Fix Blurry Apps" Automatically Option
  459.     New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "EnablePerProcessSystemDPI" -Type Dword -Value "0" -Force -EA SilentlyContinue
  460. # Set Display Scaling to 100%
  461.     Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "LogPixels" -Type Dword -Value "96" -Force -EA SilentlyContinue
  462. # This lets you set custom scaling and is tied to the above LogPixels regedit. If any other value other than 96, set to 1
  463.     Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "Win8DpiScaling" -Type Dword -Value "0" -Force -EA SilentlyContinue
  464. # Set scaling to small for all displays
  465.     Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DesktopDPIOverride" -Type Dword -Value "0" -Force -EA SilentlyContinue
  466.  
  467. # ================ Network ================
  468. # Disable IPv6
  469.     Set-NetAdapterBinding -Name Ether* -ComponentID ms_tcpip6 -Enabled $false  -EA SilentlyContinue
  470.     New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters' -Name "DisabledComponents" -Type DWord -Value "ff" -Force -EA SilentlyContinue
  471. # Disable the Network Location Wizard
  472.     New-Item -Path "HKLM:\System\CurrentControlSet\Control\Network" -Name "NewNetworkWindowOff"  -EA SilentlyContinue
  473. # Do not Allow Wifi to AutoConnect to Known Wifi Networks
  474.     New-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" -Name "value" -Type DWord -Value 0 -Force -EA SilentlyContinue
  475.     New-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" -Name "value" -Type DWord -Value 0 -Force -EA SilentlyContinue
  476. # Firewall rules to prevent the startmenu from communiacating
  477.     New-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules" -Name "Block Search SearchApp.exe" -Type String -Value 'v2.30|Action=Block|Active=TRUE|Dir=Out|RA42=IntErnet|RA62=IntErnet|App=C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\SearchApp.exe|Name=Block Search SearchUI.exe|Desc=Block Cortana Outbound UDP/TCP Traffic|' -Force -EA SilentlyContinue
  478.     New-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules" -Name "Block Search Package" -Type String -Value 'v2.30|Action=Block|Active=TRUE|Dir=Out|RA42=IntErnet|RA62=IntErnet|Name=Block Search Package|Desc=Block Search Outbound UDP/TCP Traffic|AppPkgId=S-1-15-2-536077884-713174666-1066051701-3219990555-339840825-1966734348-1611281757|Platform=2:6:2|Platform2=GTEQ|' -Force -EA SilentlyContinue
  479. # Disable active probing to Microsoft Network Connectivity Status Indicator
  480.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" -Name "EnableActiveProbing" -Type DWord -Value  1 -Force -EA SilentlyContinue
  481. ## Disable Windows Firewall, for all Network Profiles ##
  482. # Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
  483. # TCP/IP Task Offload - Disable (TCP/IP Task Offload.) (Transfers the workload from the CPU to the NIC, during data transfers.) (aka checksum offloading)
  484.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" -Name "DisableTaskOffload" -Type DWord -Value  1 -Force -EA SilentlyContinue
  485.  
  486. # ================ Windows Updates ================
  487. # Restrict Windows Update P2P only on the local network
  488.     New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" -Name "Config" -EA SilentlyContinue
  489.     New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" -Name "Start" -Type DWord -Value 0 -Force -EA SilentlyContinue
  490. # Do not show me the Windows welcome experience after updates and occasionally
  491.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SubscribedContent-310093Enabled" -Value 0 -Force -EA SilentlyContinue
  492. # Turn off featured SOFTWARE notifications through Windows Update
  493.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Type DWord "EnableFeaturedSoftware" -Value 0 -Force -EA SilentlyContinue
  494. # Delivery Optimization Settings
  495.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Type DWord "DownloadMode" -Value 0 -Force -EA SilentlyContinue
  496.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Type DWord "DODownloadMode" -Value 0 -Force -EA SilentlyContinue
  497.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings" -Type DWord "DownloadMode" -Value 0 -Force -EA SilentlyContinue
  498. # Turn off automatic download/install of store app updates
  499.     New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion" -Name "WindowsStore" -EA SilentlyContinue
  500.     New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore" -Name "WindowsUpdate" -EA SilentlyContinue
  501.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Type DWord "AutoDownload" -Value 2 -Force -EA SilentlyContinue
  502. # Prevent using sign-in info to automatically finish setting up after an update
  503.     New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Type DWord "ARSOUserConsent" -Value 0 -Force -EA SilentlyContinue
  504. # Set automatic updates to download and intsall automatically
  505.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows" -Name "WindowsUpdate" -EA SilentlyContinue
  506.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "AU" -EA SilentlyContinue
  507.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name AUOptions -Value 3 -Force -EA SilentlyContinue
  508. # Disable Automatic Updates and re-install of pre-installed bloatware
  509.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft" -Name "WindowsStore" -EA SilentlyContinue
  510.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore" -Name "AutoDownload" -Type DWord -Value  2 -Force -EA SilentlyContinue      #disable
  511. #    New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore" -Name "AutoDownload" -Type DWord -Value  4 -Force -EA SilentlyContinue       #enable
  512.     New-ItemProperty -Path "HKCU:\Control Panel\International\User Profile" -Name "HttpAcceptLanguageOptOut" -Type DWord -Value  1 -Force
  513.     New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value  1 -Force
  514.     New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell" -Name "UseActionCenterExperience" -Type DWord -Value 0 -Force -EA SilentlyContinue
  515.     New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "HideSCAHealth" -Type DWord -Value 0 -Force -EA SilentlyContinue
  516.     New-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" -Name "NoGenTicket" -Type DWord -Value  1 -Force -EA SilentlyContinue
  517.     New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name "AppCaptureEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  518.     New-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
  519. # Enable driver offerings through Windows Update.
  520.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue
  521.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue
  522.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue
  523.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue
  524.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
  525. # Disable automatic restart
  526.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue
  527.     Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue
  528. # Set automatic updates to not download and intsall automatically.
  529.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows" -Name "WindowsUpdate" -ErrorAction SilentlyContinue
  530.     New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "AU" -ErrorAction SilentlyContinue
  531.     New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name AUOptions -Value 3 -ErrorAction SilentlyContinue
  532.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement