Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
fix background diagnostics toggle blocked by recent windows updates
Greedeks10a197cf1f2d
diff --git a/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.cs b/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.csindex 2c9c297a..1c577f43 100644--- a/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.cs+++ b/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.cs@@ -507,6 +507,7 @@ namespace GTweak.Utilities.TweaksRegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\WdiSystemHost", "Start", state ? 3 : 4, RegistryValueKind.DWord, true);RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\TroubleshootingSvc", "Start", state ? 3 : 4, RegistryValueKind.DWord, true);RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\DPS", "Start", state ? 2 : 4, RegistryValueKind.DWord, true);+ CommandExecutor.RunCommandAsTrustedInstaller($@"/c {string.Join(" & ", new[] { ("WdiServiceHost", "3"), ("WdiSystemHost", "3"), ("TroubleshootingSvc", "3"), ("DPS", "2") }.Select(s => $@"reg add HKLM\SYSTEM\CurrentControlSet\Services\{s.Item1} /v Start /t REG_DWORD /d {(state ? s.Item2 : "4")} /f"))}");}),