Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
-update disabled firewall
Greedeksdfe6f9a9baa8
diff --git a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.csindex dc95e156..ab0bf471 100644--- a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs+++ b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs@@ -591,17 +591,18 @@ namespace GTweak.Utilities.Tweaksbreak;case "TglButton20":if (isChoose)- {RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\mpssvc", "Start", "4", RegistryValueKind.DWord);- RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile", "EnableFirewall", "1", RegistryValueKind.DWord);- RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile", "EnableFirewall", "1", RegistryValueKind.DWord);- }else- {RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\mpssvc", "Start", "2", RegistryValueKind.DWord);- RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile", "EnableFirewall", "0", RegistryValueKind.DWord);- RegistryHelp.Write(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile", "EnableFirewall", "0", RegistryValueKind.DWord);- }++ string value = isChoose ? "off" : "on";+ Process.Start(new ProcessStartInfo()+ {+ Arguments = $"/c netsh advfirewall set allprofiles state {value}",+ WindowStyle = ProcessWindowStyle.Hidden,+ CreateNoWindow = true,+ FileName = "cmd.exe"+ });break;case "TglButton21":if (isChoose)diff --git a/.Source/GTweak/View/ApplicationsView.xaml.cs b/.Source/GTweak/View/ApplicationsView.xaml.csindex fc47d5da..db0432fb 100644--- a/.Source/GTweak/View/ApplicationsView.xaml.cs+++ b/.Source/GTweak/View/ApplicationsView.xaml.cs@@ -31,7 +31,7 @@ namespace GTweak.Viewelse if (time.TotalSeconds % 5 == 0){BackgroundWorker backgroundWorker = new BackgroundWorker();- backgroundWorker.DoWork += (s, e) => { Parallel.Invoke(new UninstallingApps().ViewInstalledApp); };+ backgroundWorker.DoWork += (s, e) => { new UninstallingApps().ViewInstalledApp(); };backgroundWorker.RunWorkerAsync();}