Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################################################################################################
- #=====[ RegKey Modifications ]=====#
- ########################################################################################################################
- # ================ Login ================
- # Disable first time logon animation
- New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -name 'EnableFirstLogonAnimation' -PropertyType DWORD -Value 0 -Force -EA SilentlyContinue
- # Disable the New Lock Screen and Disables the shade up effects
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization" -Name "NoLockScreen" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Disable Users On Login Screen
- New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "dontdisplaylastusername" -Type DWord -Value 1
- # Disable Lockscreen suggestions, rotating pictures
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SoftLandingEnabled" -Value 0 -Force -EA SilentlyContinue -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "RotatingLockScreenEnabled" -Value 0 -Force -EA SilentlyContinue -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "RotatingLockScreenOverlayEnabled" -Value 0 -Force -EA SilentlyContinue -EA SilentlyContinue
- #Disallow Cortana on lock screen
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Type DWord "AllowCortanaAboveLock" -Value 0 -Force -EA SilentlyContinue
- # ================ Explorer / General ================
- # Disable Activity History and Timeline
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableActivityFeed" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "PublishUserActivities" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "UploadUserActivities" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Show File Operation Details
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" | Out-Null -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Name "EnthusiastMode" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Change Default View to this PC
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Disable 3D Objects Icon
- Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Force -EA SilentlyContinue
- # Disable History View
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "HistoryViewEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- <# # Remove Downloads library from My PC
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{088e3905-0323-4b02-9826-5d99428e115f}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{088e3905-0323-4b02-9826-5d99428e115f}" -Force
- # Remove Pictures library from My PC
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" -Force
- # Remove Music library from My PC
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" -Force
- # Remove Desktop library from My PC
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" -Force
- # Remove Documents library from My PC
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{d3162b92-9365-467a-956b-92703aca08af}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{d3162b92-9365-467a-956b-92703aca08af}" -Force
- # Remove Videos library from My PC
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{A0953C92-50DC-43bf-BE83-3742FED03C9C}" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" -Force #>
- # Remove 3D Objects library from My PC
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Force -EA SilentlyContinue
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" -Name "{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Force -EA SilentlyContinue
- # Removes the shake to minimize all other windows getures
- Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking" -Type DWord -Value 1
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneShowAllFolders" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Hidden" -Type DWord -Value 1
- Remove-Item -Path "HKEY_CLASSES_ROOT\CABFolder\CLSID" -EA SilentlyContinue
- Remove-Item -Path "HKEY_CLASSES_ROOT\SystemFileAssociations\.cab\CLSID" -EA SilentlyContinue
- Remove-Item -Path "HKEY_CLASSES_ROOT\CompressedFolder\CLSID" -EA SilentlyContinue
- Remove-Item -Path "HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\CLSID" -EA SilentlyContinue
- # Remove OneDrive from the Explorer Side Panel
- Set-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name "System.IsPinnedToNameSpaceTree" -Type DWord -Value 0
- # Show hidden files in Windows Explorer
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSuperHidden" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Remove the Open with Paint 3D from the explorer context menu
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.bmp\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.jpeg\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.jpe\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.png\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.gif\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.tif\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.tiff\Shell\3D Edit" -Force -EA SilentlyContinue
- # Removes Paint3D from the context menu
- Remove-Item -Path "HKCR:\SystemFileAssociations\.3mf\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.bmp\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.fbx\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.gif\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.jfif\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.jpe\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.jpeg\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.jpg\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.png\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.tif\Shell\3D Edit" -Force -EA SilentlyContinue
- Remove-Item -Path "HKCR:\SystemFileAssociations\.tiff\Shell\3D Edit" -Force -EA SilentlyContinue
- # Remove Edit with Paint 3D from context menu
- Remove-Item -Path "HKCR:\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\ShellEdit" -Force -EA SilentlyContinue
- # Do not track most used apps
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_TrackProgs" -Type DWord -Value 0 -Force -EA SilentlyContinuex00000000 -Force
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_TrackDocs" -Type DWord -Value 0 -Force -EA SilentlyContinuex00000000 -Force
- # Show File Extensions
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # ================ Explorer / Advanced ================
- # Disable UAC
- New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name "EnableLUA" -PropertyType DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Info bar prompting that Windows Search has been disasbled
- Set-ItemProperty -Path "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "InfoBarsDisabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer"
- # Disable Ads in File Explorer
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Type DWord "ShowSyncProviderNotifications" -Value 0 -Force -EA SilentlyContinue
- # Add "Run as different user" to context menu
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer"
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "ShowRunasDifferentuserinStart" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Show Full Path in the address bar
- Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" -Name "FullPathAddress" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # ================ Privacy ================
- # Remove all content from auto logger Diagnostic Tracker
- Add-Content -Path 'C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl' -Value '' -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" -Name "Start" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\InfoBarsDisabled" "LocationNotIndexed" -Type DWord -Value 1 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\InfoBarsDisabled" "ServerMSSNotInstalled" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Disable Telemetry
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Location Tracking - global
- New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Force | Out-Null
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Name "Value" -Type String -Value "Deny"
- 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
- Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" -Name "Status" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable CEIP
- New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\SQMClient'
- New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\SQMClient\Windows'
- New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\SQMClient\Windows' -Name "CEIPEnable" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Antispyware
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWORD -Value 1 -Force -EA SilentlyContinue
- # Remove SecurityHealth from startup
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SecurityHealth" -Force
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" -Name "SecurityHealth" -Force
- # Turns off Windows blocking installation of files downloaded from the internet
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments" -Name "SaveZoneInformation" -Type DWord -Value 1 -Force
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments" -Name "SaveZoneInformation" -Type DWord -Value 1 -Force
- # Turn Off Microsoft Defender SmartScreen for Microsoft Store Apps in Windows 10
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" -Name "EnableWebContentEvaluation" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable SmartScreen
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "SmartScreenEnabled" -Type String -Value "Off" -Force
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" -Name "ContentEvaluation" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Do not accept the policy
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Enable diagnostic data viewer
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack\EventTranscriptKey" -Type DWord "EnableEventTranscript" -Value 1 -Force -EA SilentlyContinue
- # ================ Application ================
- New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows' -Name CloudContent -EA SilentlyContinue
- # Disable services that are known to cause issues
- 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
- New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "AutoEndTasks" -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\xboxgip" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XboxGipSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\CDPUserSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\UnistoreSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\UserDataSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XblGameSave" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\WpnUserService" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XboxNetApiSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\XblAuthManager" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\PimIndexMaintenanceSvc" -Name "Start" -Value 4 -Force -EA SilentlyContinue
- New-Item -Path "HKLM:\SYSTEM\ControlSet001\Control\WMI" -Name "AutoLogger" -Force -EA SilentlyContinue
- # Disable application suggestions
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "OemPreInstalledAppsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEverEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SoftLandingEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338388Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable 'Get tips, tricks, suggestions as you use Windows'
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338389Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-353698Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SystemPaneSuggestionsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -Type DWord -Value 1 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Type DWord "DisableWindowsSpotlightFeatures" -Value 1 -Force -EA SilentlyContinue
- # Microsoft pushing applications quietly into your profile
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SilentInstalledAppsEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "ContentDeliveryAllowed" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SubscribedContentEnabled" -Value 0 -Force -EA SilentlyContinue
- # Disable automatic maps update
- Set-ItemProperty -Path "HKLM:\SYSTEM\Maps" -Name "AutoUpdateEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable background application access
- Get-ChildItem -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" -Exclude "Microsoft.Windows.Cortana*" | ForEach {
- Set-ItemProperty -Path $_.PsPath -Name "Disabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
- Set-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -Type DWord -Value 1 -Force -EA SilentlyContinue}
- # Turn Off OneDrive
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC" -Type DWord -Value 1 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSync" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Remove Background Tasks
- Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- # Remove Background Tasks Windows Files
- Remove-Item "HKCR:\Extensions\ContractId\Windows.File\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
- #Registry keys to delete if they aren't uninstalled by RemoveAppXPackage/RemoveAppXProvisionedPackage
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- #Scheduled Tasks to delete
- Remove-Item "HKCR:\Extensions\ContractId\Windows.PreInstalledConfigTask\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe" -Recurse -ErrorAction SilentlyContinue
- #Windows Protocol Keys
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- Remove-Item "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy" -Recurse -ErrorAction SilentlyContinue
- #Windows Share Target
- Remove-Item "HKCR:\Extensions\ContractId\Windows.ShareTarget\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0" -Recurse -ErrorAction SilentlyContinue
- # Setting Mixed Reality Portal value to 0 so that you can uninstall it in Settings
- Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Holographic' -Name 'FirstRunSucceeded' -Value 0 -Force -EA SilentlyContinue -Verbose
- # Preinstalled apps, Minecraft Twitter etc all that - still need a clean default start menu to fully eliminate
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "PreInstalledAppsEnabled" -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "PreInstalledAppsEverEnabled" -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "OEMPreInstalledAppsEnabled" -Value 0 -Force -EA SilentlyContinue
- # Disable Xbox Game DVR
- New-ItemProperty -Path "HKCU:\System\GameConfigStore" -Type DWord "GameDVR_Enabled" -Value 0 -Force -EA SilentlyContinue
- # Disable OneDrive startup run user settings
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /T REG_BINARY /V "OneDrive" -Value 0 -Force -EA SilentlyContinue300000021B9DEB396D7D001
- # Disable automatic OneDrive desktop setup for New accounts
- Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "OneDriveSetup" -Force -EA SilentlyContinue
- # Disable Game Monitoring Service
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\xbgm" -Type DWord "Start" -Value 4 -Force -EA SilentlyContinue
- # GameDVR local GP - Computer Config\Admin Templates\Windows Components\Windows Game Recording and Broadcasting
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR" -Type DWord "AllowGameDVR" -Value 0 -Force -EA SilentlyContinue
- # Brave - Presets
- New-Item -Path "HKLM:\Software\Policies\BraveSoftware" -EA SilentlyContinue
- New-Item -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -EA SilentlyContinue
- New-Item -Path "HKLM:\Software\Policies\BraveSoftware\Brave\Recommended" -EA SilentlyContinue
- # Brave - Disable Saving Passwords HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -Name "PasswordManagerEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Brave - Disable AutoFill for credit cards HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave\Recommended" -Name "AutofillCreditCardEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Brave - Turn off Background mode HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave\Recommended" -Name "BackgroundModeEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Brave - Enable set Brave as default Browser HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -Name "DefaultBrowserSettingEnabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Brave - Enable Bookmark Bar HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\BraveSoftware\Brave" -Name "BookmarkBarEnabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Chrome - Presets
- New-Item -Path "HKLM:\Software\Policies\Google" -EA SilentlyContinue
- New-Item -Path "HKLM:\Software\Policies\Google\Chrome" -EA SilentlyContinue
- New-Item -Path "HKLM:\Software\Policies\Google\Chrome\Recommended" -EA SilentlyContinue
- # Chrome - Disable Saving Passwords HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome" -Name "PasswordManagerEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Chrome - Disable AutoFill for credit cards HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome\Recommended" -Name "AutofillCreditCardEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Chrome - Turn off Background mode HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome\Recommended" -Name "BackgroundModeEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Chrome - Disable set Chrome as default Browser HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome" -Name "DefaultBrowserSettingEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Chrome - Enable Bookmark Bar HKLM
- New-ItemProperty -Path "HKLM:\Software\Policies\Google\Chrome" -Name "BookmarkBarEnabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # ================ Internet Explorer / Microsoft Edge ================
- # Disable Internet Explorer first time run start requirements
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Value 2 -Force -EA SilentlyContinue
- # Disable Microsoft Edge first time run start requirements
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft" -Name "MicrosoftEdge"
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge" -Name "Main"
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" -Type DWord -Name AllowPrelaunch -Value 0 -Force -EA SilentlyContinue
- reg load HKLM\Default_User C:\Users\Default\NTUSER.DAT
- # Do not track - Edge
- 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
- # Do not track - IE
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Internet Explorer\Main" -Type DWord "DoNotTrack" -Value 1 -Force -EA SilentlyContinue
- # Disable Edge desktop shortcut
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Type DWord "DisableEdgeDesktopShortcutCreation" -Value 1 -Force -EA SilentlyContinue
- # ================ Search / Cortana ================
- # Disable Windows Search
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Force | Out-Null -EA SilentlyContinue
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Force | Out-Null -EA SilentlyContinue
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null -EA SilentlyContinue
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Dont Search the web or display web results
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "ConnectedSearchUseWeb" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Dont allow search to use location
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "AllowSearchToUseLocation" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Search Suggestions
- New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableSearchBoxSuggestions" -Type DWord -Value 1
- # Disable Voice Activation
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Preferences" -Name "VoiceActivationDefaultOn" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" -Name "DisableVoice" -Type DWord -Value 1
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Preferences" -Name "ModelDownloadAllowed" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Voice Activation at lockscreen
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Preferences" -Name "VoiceActivationEnableAboveLockscreen" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Do not allow indexing on Encrypted Store or Items
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowIndexingEncryptedStoresOrItems" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable SafeSearch in the search menu
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\SearchSettings" -Name "SafeSearchMode" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable other Search settings
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AlwaysUseAutoLangDetection" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "HasAboveLockTips" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "ConnectedSearchUseWebOverMeteredConnections" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCloudSearch" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # ================ Start Menu ================
- # Disable Bing search
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Disable Cortana in ambient mode
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaInAmbientMode" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable live tiles
- New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications' -EA SilentlyContinue
- New-ItemProperty 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications' -Name 'NoTileApplicationNotification' -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Removing CloudStore
- Remove-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore' -Recurse -Force
- # Disable Cortana
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Type DWord "CortanaEnabled" -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Type DWord "CanCortanaBeEnabled" -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Type DWord "DeviceHistoryEnabled" -Value 0 -Force -EA SilentlyContinue
- # Disable Tiles
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen" -Name "TileMigrated" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Change Start Menu Speed
- Set-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name MenuShowDelay -Value 20 -Force -EA SilentlyContinue
- # Change Time to Holocene
- New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sTimeFormat" -Type String -Value "HH:mm:ss" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sShortTime" -Type String -Value "HH:mm" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sLongDate" -Type String -Value "dddd, dd MMMM, 1yyyy" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sShortDate" -Type String -Value "dd-MMM-1yyyy" -Force -EA SilentlyContinue
- # ================ Task Manager ================
- Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue
- # Always show all tray Icons in windows
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # ================ Taskbar ================
- # Hide Task View Button
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Hide People Icon
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" | Out-Null -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Taskbar or Search box
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable action center
- New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" | Out-Null -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Dont show My People notifications
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People\ShoulderTap" -Type DWord "ShoulderTap" -Value 0 -Force -EA SilentlyContinue
- # Disable "Meet Now" taskbar button
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Type DWord "HideSCAMeetNow" -Value 1 -Force -EA SilentlyContinue
- # Enable Small icons
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSmallIcons" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Group Windows - Always combine
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarGlomLevel" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Hide Cortana on the Task bar
- Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCortanaButton" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable News and Interests
- Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2 -Force -EA SilentlyContinue
- # ================ Microsoft Feedback ================
- # Disable Microsoft Consumer Experience
- New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\' -Name CloudContent -EA SilentlyContinue
- New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent' -name 'DisableWindowsConsumerFeatures' -PropertyType DWORD -Value 1 -Force -EA SilentlyContinue
- # Disable feedback
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf" -Force | Out-Null -EA SilentlyContinue
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Force | Out-Null -EA SilentlyContinue
- New-Item -Path "HKCU:\Software\Microsoft\Siuf\Rules\PeriodInNanoSeconds" -Force | Out-Null -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Name "NumberOfSIUFInPeriod" -Type DWord -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "DoNotShowFeedbackNotifications" -Type DWord -Value 1 -Force -EA SilentlyContinue
- New-ItemProperty -Path 'HKCU:\Software\Microsoft\Siuf\Rules' -Name "NumberOfSIUFInPeriod" -PropertyType DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path 'HKCU:\Software\Microsoft\Siuf\Rules\PeriodInNanoSeconds' -Name 'PeriodInNanoSeconds' -PropertyType DWord -Value 0 -Force -EA SilentlyContinue -Verbose
- # Disable tailored feedback
- New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Force | Out-Null -EA SilentlyContinue
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableTailoredExperiencesWithDiagnosticData" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Disable advertising ID
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" | Out-Null -EA SilentlyContinue
- Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo' -Name 'Enabled' -Value 0 -Force -EA SilentlyContinue -Verbose
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Name "DisabledByGroupPolicy" -Type DWord -Value 1 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value 1
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion" -Name "Device Metadata" -Force
- # Disable error reporting
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name "Disabled" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Disable Remote Assitance
- Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance" -Name "fAllowToGetHelp" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Storage Sense
- Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" -Recurse -ErrorAction SilentlyContinue
- # Disable Creation of Crash Dumps that are sent to Microsoft
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl" -Name "CrashDumpEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable File Samples to Analysis
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet"
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Name "SubmitSamplesConsent" -Type DWord -Value 2
- # Disable System Settings Sync
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\SettingSync" -Name "DisableSettingSync" -Type DWord -Value 2 -Force
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\SettingSync" -Name "DisableSettingSyncUserOverride" -Type DWord -Value 1 -Force
- # Do not automatically encrypt files moved to encrypted folders
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\EnhancedStorageDevices" -Name "TCGSecurityActivationDisabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Do not uese Certificate Rules on Windows Executables for Software Restriction Policies
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\safer\codeidentifiers" -Name "authenticodeenabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Do not send Error Reporting Additional Data
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name "DontSendAdditionalData" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Restrict Handwriting information being sent to Microsoft
- New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1 -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1 -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Disable Tailored experiences - Diagnostics & Feedback settings
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy" -Type DWord "TailoredExperiencesWithDiagnosticDataEnabled" -Value 0 -Force -EA SilentlyContinue
- # Speech language sync
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language" -Type DWord "Enabled" -Value 0 -Force -EA SilentlyContinue
- # Do not improve inking & typing recognition
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Input\TIPC" -Type DWord "Enabled" -Value 0 -Force -EA SilentlyContinue
- # Pen & Windows Ink - Show recommended app suggestions
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace" -Type DWord "PenWorkspaceAppSuggestionsEnabled" -Value 0 -Force -EA SilentlyContinue
- # Do not Show My People app suggestions
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SubscribedContent-314563Enabled" -Value 0 -Force -EA SilentlyContinue
- # Turn off Computer Maintenance (System Maintenance) (Determines whether scheduled diagnostics will run to proactively detect and resolve system problems.)
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\ScheduledDiagnostics" -Name "EnabledExecution" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # ================ Power Settings ================
- # Disable Hibernation
- Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session Manager\Power" -Name "HibernteEnabled" -Type Dword -Value 0 -Force -EA SilentlyContinue
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name "ShowHibernateOption" -Type Dword -Value 0 -Force -EA SilentlyContinue
- # ================ Control Panel ================
- # Dont show suggested content in settings
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type Dword -Name "SubscribedContent-338393Enabled" -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type Dword -Name "SubscribedContent-353694Enabled" -Value 0 -Force -EA SilentlyContinue
- # Do Not Show suggestions occasionally
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type Dword -Name "SubscribedContent-338388Enabled" -Value 0 -Force -EA SilentlyContinue
- New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "controlpanel"
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\controlpanel" -Name "StartupPage" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # Set Icons in Control Panel to small
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\controlpanel" -Name "AllItemsIconView" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # ================ Personalization ================
- # Enable Darkmode
- Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "AppsUseLightTheme" -Value 0 -Force -EA SilentlyContinue
- # Disable phone pairing
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\SmartGlass" -Type DWord "UserAuthPolicy" -Value 0 -Force -EA SilentlyContinue
- # Decrease Shutdown time
- New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "WaitToKillAppTimeOut" -Type String -Value "2000" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "WaitToKillServiceTimeout" -Type String -Value "2000" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "HungAppTimeout" -Type String -Value "2000" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "AutoEndTasks" -Type String -Value "1" -Force -EA SilentlyContinue
- # Disable "Let Windows Fix Blurry Apps" Automatically Option
- New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "EnablePerProcessSystemDPI" -Type Dword -Value "0" -Force -EA SilentlyContinue
- # Set Display Scaling to 100%
- Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "LogPixels" -Type Dword -Value "96" -Force -EA SilentlyContinue
- # This lets you set custom scaling and is tied to the above LogPixels regedit. If any other value other than 96, set to 1
- Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "Win8DpiScaling" -Type Dword -Value "0" -Force -EA SilentlyContinue
- # Set scaling to small for all displays
- Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DesktopDPIOverride" -Type Dword -Value "0" -Force -EA SilentlyContinue
- # ================ Network ================
- # Disable IPv6
- Set-NetAdapterBinding -Name Ether* -ComponentID ms_tcpip6 -Enabled $false -EA SilentlyContinue
- New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters' -Name "DisabledComponents" -Type DWord -Value "ff" -Force -EA SilentlyContinue
- # Disable the Network Location Wizard
- New-Item -Path "HKLM:\System\CurrentControlSet\Control\Network" -Name "NewNetworkWindowOff" -EA SilentlyContinue
- # Do not Allow Wifi to AutoConnect to Known Wifi Networks
- New-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" -Name "value" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" -Name "value" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Firewall rules to prevent the startmenu from communiacating
- 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
- 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
- # Disable active probing to Microsoft Network Connectivity Status Indicator
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" -Name "EnableActiveProbing" -Type DWord -Value 1 -Force -EA SilentlyContinue
- ## Disable Windows Firewall, for all Network Profiles ##
- # Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
- # TCP/IP Task Offload - Disable (TCP/IP Task Offload.) (Transfers the workload from the CPU to the NIC, during data transfers.) (aka checksum offloading)
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" -Name "DisableTaskOffload" -Type DWord -Value 1 -Force -EA SilentlyContinue
- # ================ Windows Updates ================
- # Restrict Windows Update P2P only on the local network
- New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" -Name "Config" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" -Name "Start" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Do not show me the Windows welcome experience after updates and occasionally
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SubscribedContent-310093Enabled" -Value 0 -Force -EA SilentlyContinue
- # Turn off featured SOFTWARE notifications through Windows Update
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Type DWord "EnableFeaturedSoftware" -Value 0 -Force -EA SilentlyContinue
- # Delivery Optimization Settings
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Type DWord "DownloadMode" -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Type DWord "DODownloadMode" -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings" -Type DWord "DownloadMode" -Value 0 -Force -EA SilentlyContinue
- # Turn off automatic download/install of store app updates
- New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion" -Name "WindowsStore" -EA SilentlyContinue
- New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore" -Name "WindowsUpdate" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Type DWord "AutoDownload" -Value 2 -Force -EA SilentlyContinue
- # Prevent using sign-in info to automatically finish setting up after an update
- New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Type DWord "ARSOUserConsent" -Value 0 -Force -EA SilentlyContinue
- # Set automatic updates to download and intsall automatically
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows" -Name "WindowsUpdate" -EA SilentlyContinue
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "AU" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name AUOptions -Value 3 -Force -EA SilentlyContinue
- # Disable Automatic Updates and re-install of pre-installed bloatware
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft" -Name "WindowsStore" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore" -Name "AutoDownload" -Type DWord -Value 2 -Force -EA SilentlyContinue #disable
- # New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore" -Name "AutoDownload" -Type DWord -Value 4 -Force -EA SilentlyContinue #enable
- New-ItemProperty -Path "HKCU:\Control Panel\International\User Profile" -Name "HttpAcceptLanguageOptOut" -Type DWord -Value 1 -Force
- New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1 -Force
- New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell" -Name "UseActionCenterExperience" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "HideSCAHealth" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" -Name "NoGenTicket" -Type DWord -Value 1 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name "AppCaptureEnabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type DWord -Value 0 -Force -EA SilentlyContinue
- # Enable driver offerings through Windows Update.
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
- # Disable automatic restart
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue
- Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue
- # Set automatic updates to not download and intsall automatically.
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows" -Name "WindowsUpdate" -ErrorAction SilentlyContinue
- New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "AU" -ErrorAction SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name AUOptions -Value 3 -ErrorAction SilentlyContinue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement