Skip to content

Commit b77695b

Browse files
Update custom registry tweaks
1 parent c57133d commit b77695b

File tree

1 file changed

+121
-20
lines changed

1 file changed

+121
-20
lines changed

debloat_components/debloat_registry_tweaks.py

Lines changed: 121 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,134 @@
88

99
def main():
1010
registry_modifications = [
11+
"""
12+
Disabling different types of annoyances
13+
"""
14+
15+
# Turn off File Explorer Ads
1116
(winreg.HKEY_CURRENT_USER,
12-
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
13-
"TaskbarAl", winreg.REG_DWORD, 0),
17+
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
18+
"ShowSyncProviderNotifications", winreg.REG_DWORD, 0),
19+
20+
# Don't show (ads) recommendations for tips, shortcuts, new apps, and more on Start Menu
1421
(winreg.HKEY_CURRENT_USER,
15-
r"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",
16-
"AppsUseLightTheme", winreg.REG_DWORD, 0),
22+
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
23+
"Start_IrisRecommendations", winreg.REG_DWORD, 0),
24+
25+
# Don't show Microsoft account-related notifications on Start Menu
1726
(winreg.HKEY_CURRENT_USER,
18-
r"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",
19-
"SystemUsesLightTheme", winreg.REG_DWORD, 0),
27+
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
28+
"Start_AccountNotifications", winreg.REG_DWORD, 0),
29+
30+
# Don't suggest ways to get the most out of Windows and finish setting up this device
2031
(winreg.HKEY_CURRENT_USER,
21-
r"Software\Microsoft\Windows\CurrentVersion\GameDVR",
22-
"AppCaptureEnabled", winreg.REG_DWORD, 0),
23-
(winreg.HKEY_LOCAL_MACHINE,
24-
r"SOFTWARE\Microsoft\PolicyManager\default\ApplicationManagement\AllowGameDVR",
25-
"Value", winreg.REG_DWORD, 0),
32+
r"Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement",
33+
"ScoobeSystemSettingEnabled", winreg.REG_DWORD, 0),
34+
35+
# Disable "Tailored Experiences"
36+
(winreg.HKEY_CURRENT_USER,
37+
r"Software\Microsoft\Windows\CurrentVersion\Privacy",
38+
"TailoredExperiencesWithDiagnosticDataEnabled", winreg.REG_DWORD, 0),
39+
40+
# Disable "Notification Suggestions"
41+
(winreg.HKEY_CURRENT_USER,
42+
r"Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.ActionCenter.SmartOptOut",
43+
"Enabled", winreg.REG_DWORD, 0),
44+
45+
"""
46+
Disabling all possible ContentDeliveryManager settings
47+
"""
48+
49+
# Don't get (ads) fun facts, tips, tricks, and more on the lock screen
50+
(winreg.HKEY_CURRENT_USER,
51+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
52+
"RotatingLockScreenOverlayEnabled", winreg.REG_DWORD, 0),
53+
(winreg.HKEY_CURRENT_USER,
54+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
55+
"SubscribedContent-338387Enabled", winreg.REG_DWORD, 0),
56+
57+
# Don't show (ads) suggested content in the Settings app
58+
(winreg.HKEY_CURRENT_USER,
59+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
60+
"SubscribedContent-338393Enabled", winreg.REG_DWORD, 0),
61+
(winreg.HKEY_CURRENT_USER,
62+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
63+
"SubscribedContent-353694Enabled", winreg.REG_DWORD, 0),
64+
(winreg.HKEY_CURRENT_USER,
65+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
66+
"SubscribedContent-353696Enabled", winreg.REG_DWORD, 0),
67+
68+
# Don't get general tips and suggestions when using Windows
69+
(winreg.HKEY_CURRENT_USER,
70+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
71+
"SubscribedContent-338389Enabled", winreg.REG_DWORD, 0),
72+
73+
# Turn off Windows welcome experience ads
74+
(winreg.HKEY_CURRENT_USER,
75+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
76+
"SubscribedContent-310093Enabled", winreg.REG_DWORD, 0),
77+
78+
# Other yet unnamed
2679
(winreg.HKEY_CURRENT_USER,
27-
r"Control Panel\Desktop",
28-
"MenuShowDelay", winreg.REG_SZ, "0"),
80+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
81+
"SystemPaneSuggestionsEnabled", winreg.REG_DWORD, 0),
2982
(winreg.HKEY_CURRENT_USER,
30-
r"Control Panel\Desktop\WindowMetrics",
31-
"MinAnimate", winreg.REG_DWORD, 0),
83+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
84+
"SilentInstalledAppsEnabled", winreg.REG_DWORD, 0),
85+
(winreg.HKEY_CURRENT_USER,
86+
r"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
87+
"SoftLandingEnabled", winreg.REG_DWORD, 0),
88+
89+
"""
90+
Interface
91+
"""
92+
93+
# Align taskbar to the left
94+
(winreg.HKEY_CURRENT_USER,
95+
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
96+
"TaskbarAl", winreg.REG_DWORD, 0),
97+
98+
# Show extensions for known file types
99+
(winreg.HKEY_CURRENT_USER,
100+
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
101+
"HideFileExt", winreg.REG_DWORD, 0),
102+
103+
# Open File Explorer to This PC
104+
(winreg.HKEY_CURRENT_USER,
105+
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
106+
"LaunchTo", winreg.REG_DWORD, 1),
107+
108+
# Set default app mode to dark
109+
(winreg.HKEY_CURRENT_USER,
110+
r"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",
111+
"AppsUseLightTheme", winreg.REG_DWORD, 0),
112+
113+
# Set default Windows mode to dark
114+
(winreg.HKEY_CURRENT_USER,
115+
r"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",
116+
"SystemUsesLightTheme", winreg.REG_DWORD, 0),
117+
118+
# Don't animate windows when minimizing and maximizing
119+
(winreg.HKEY_CURRENT_USER,
120+
r"Control Panel\Desktop\WindowMetrics",
121+
"MinAnimate", winreg.REG_DWORD, 0),
122+
123+
"""
124+
Misc.
125+
"""
126+
127+
(winreg.HKEY_CURRENT_USER,
128+
r"Software\Microsoft\Windows\CurrentVersion\GameDVR",
129+
"AppCaptureEnabled", winreg.REG_DWORD, 0),
130+
(winreg.HKEY_LOCAL_MACHINE,
131+
r"SOFTWARE\Microsoft\PolicyManager\default\ApplicationManagement\AllowGameDVR",
132+
"Value", winreg.REG_DWORD, 0),
32133
(winreg.HKEY_CURRENT_USER,
33-
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
34-
"ExtendedUIHoverTime", winreg.REG_DWORD, 1),
134+
r"Control Panel\Desktop",
135+
"MenuShowDelay", winreg.REG_SZ, "0"),
35136
(winreg.HKEY_CURRENT_USER,
36-
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
37-
"HideFileExt", winreg.REG_DWORD, 0),
137+
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
138+
"ExtendedUIHoverTime", winreg.REG_DWORD, 1)
38139
]
39140
for hive, key_path, name, value_type, value in registry_modifications:
40141
try:
@@ -57,4 +158,4 @@ def main():
57158

58159

59160
if __name__ == "__main__":
60-
main()
161+
main()

0 commit comments

Comments
 (0)