energy-quants / bootstrap

A repo containing scripts for bootstrapping a development environment
MIT License
0 stars 1 forks source link

Windows Registry Hacks #24

Open dhirschfeld opened 1 year ago

dhirschfeld commented 1 year ago
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SearchSettings
IsDynamicSearchBoxEnabled = 0
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
AllowCortana: DWORD32 = 0
Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer (Create)
DisableSearchBoxSuggestions: DWORD32 = 1
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
ShowSyncProviderNotifications = 0
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager
RotatingLockScreenOverlayEnabled = 0
SoftLandingEnabled = 0
SilentInstalledAppsEnabled = 0
SubscribedContent-338387Enabled = 0
SubscribedContent-338389Enabled = 0
SubscribedContent-338393Enabled = 0
SubscribedContent-353694Enabled = 0
SubscribedContent-353696Enabled = 0
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement
ScoobeSystemSettingEnabled = 0
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo
Enabled = 0
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack
ShowedToastAtLevel = 1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection
AllowTelemetry = 0
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Privacy
TailoredExperiencesWithDiagnosticDataEnabled = 0
Add key:
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""
dhirschfeld commented 1 month ago
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\SearchSettings" -Name IsDynamicSearchBoxEnabled -Value 0

New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name AllowCortana -Type DWord -Value 0

New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer"
Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name DisableSearchBoxSuggestions -Type DWord -Value 1

Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name ShowSyncProviderNotifications -Value 0

$path = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager'
Set-ItemProperty -Path $path -Name RotatingLockScreenOverlayEnabled -Value 0
Set-ItemProperty -Path $path -Name SoftLandingEnabled -Value 0
Set-ItemProperty -Path $path -Name SilentInstalledAppsEnabled -Value 0
Set-ItemProperty -Path $path -Name SubscribedContent-338387Enabled -Value 0
Set-ItemProperty -Path $path -Name SubscribedContent-338389Enabled -Value 0
Set-ItemProperty -Path $path -Name SubscribedContent-338393Enabled -Value 0
Set-ItemProperty -Path $path -Name SubscribedContent-353694Enabled -Value 0
Set-ItemProperty -Path $path -Name SubscribedContent-353696Enabled -Value 0

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement" -Name ScoobeSystemSettingEnabled -Value 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" -Name Enabled -Value 0
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack" -Name ShowedToastAtLevel -Value 1
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name AllowTelemetry -Value 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Privacy" -Name TailoredExperiencesWithDiagnosticDataEnabled -Value 0

New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force

# Disable "Let websites show me locally relevant content by accessing my language list"
# https://www.elevenforum.com/t/enable-or-disable-website-access-to-language-list-in-windows-11.3733/
Set-ItemProperty -Path "HKCU:\Control Panel\International\User Profile" -Name HttpAcceptLanguageOptOut -Type DWord -Value 1

# Disable "Store my activity history on this device"
# https://www.elevenforum.com/t/enable-or-disable-store-activity-history-on-device-in-windows-11.7812/
Set-ItemProperty -Path  "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name PublishUserActivities -Value 0