Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
add fully automated Defender disabling in Safe Mode without password entry Closes #128
Greedeks8d52456ab4f6
diff --git a/.Source/GTweak/Resources/DisablingWD.gz b/.Source/GTweak/Resources/DisablingWD.gzindex eb7f5697..94737888 100644Binary files a/.Source/GTweak/Resources/DisablingWD.gz and b/.Source/GTweak/Resources/DisablingWD.gz differdiff --git a/.Source/GTweak/Utilities/Tweaks/DefenderManager/WindowsDefender.cs b/.Source/GTweak/Utilities/Tweaks/DefenderManager/WindowsDefender.csindex 482407bf..2e2a8d75 100644--- a/.Source/GTweak/Utilities/Tweaks/DefenderManager/WindowsDefender.cs+++ b/.Source/GTweak/Utilities/Tweaks/DefenderManager/WindowsDefender.cs@@ -13,6 +13,8 @@ namespace GTweak.Utilities.Tweaks.DefenderManager{internal class WindowsDefender : AclPermissionsBackup{+ const string ServiceName = "GTweakWDManager";+private static readonly Dictionary<string, string> services = new Dictionary<string, string>{{ "WinDefend", "2" },@@ -429,7 +431,9 @@ namespace GTweak.Utilities.Tweaks.DefenderManagerRegistryHelp.Write(Registry.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "FilterAdministratorToken", 0, RegistryValueKind.DWord);RegistryHelp.Write(Registry.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "PromptOnSecureDesktop", 0, RegistryValueKind.DWord);- RegistryHelp.Write(Registry.LocalMachine, @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell", $"explorer.exe, {PathLocator.Executable.DisablingWD} /unlock", RegistryValueKind.String, true);+ CommandExecutor.RunCommand($"/c sc create {ServiceName} binPath= \"{PathLocator.Executable.DisablingWD} /unlock\" type= own start= auto obj= LocalSystem");++ RegistryHelp.Write(Registry.LocalMachine, $@"SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\{ServiceName}", "", "Service", RegistryValueKind.String);ProcessStartInfo psi = new ProcessStartInfo{@@ -441,6 +445,7 @@ namespace GTweak.Utilities.Tweaks.DefenderManagerRedirectStandardError = true};Process.Start(psi)?.WaitForExit();+CommandExecutor.RunCommand("/c shutdown /r /f /t 0");}