Added optimization service to debloat.bat

This commit is contained in:
Serge
2023-05-29 13:15:23 +02:00
parent 42cc1bdb98
commit 325f16cf55
3 changed files with 15 additions and 7 deletions

View File

@@ -6,7 +6,6 @@ using System.Net;
using System.Reflection; using System.Reflection;
using System.Text.Json; using System.Text.Json;
using System.Timers; using System.Timers;
using System.Windows.Forms;
using Tools; using Tools;
namespace GHelper namespace GHelper
@@ -205,7 +204,8 @@ namespace GHelper
try try
{ {
base.WndProc(ref m); base.WndProc(ref m);
} catch (Exception ex) }
catch (Exception ex)
{ {
Debug.WriteLine(ex.ToString()); Debug.WriteLine(ex.ToString());
} }
@@ -1416,7 +1416,7 @@ namespace GHelper
if (eco < 0) if (eco < 0)
{ {
tableGPU.Visible = false; tableGPU.Visible = false;
if (Program.acpi.DeviceGet(AsusACPI.GPU_Fan) < 0 ) panelGPU.Visible = false; if (Program.acpi.DeviceGet(AsusACPI.GPU_Fan) < 0) panelGPU.Visible = false;
} }
} }

View File

@@ -6,6 +6,8 @@ sc config ASUSSwitch start= auto
sc config ASUSSystemAnalysis start= auto sc config ASUSSystemAnalysis start= auto
sc config ASUSSystemDiagnosis start= auto sc config ASUSSystemDiagnosis start= auto
sc config ArmouryCrateControlInterface start= auto sc config ArmouryCrateControlInterface start= auto
sc config AsusCertService start= auto
sc config ASUSOptimization start= auto
sc START AsusAppService sc START AsusAppService
sc START ASUSLinkNear sc START ASUSLinkNear
@@ -15,5 +17,7 @@ sc START ASUSSwitch
sc START ASUSSystemAnalysis sc START ASUSSystemAnalysis
sc START ASUSSystemDiagnosis sc START ASUSSystemDiagnosis
sc START ArmouryCrateControlInterface sc START ArmouryCrateControlInterface
sc START AsusCertService
sc START ASUSOptimization
set /p asd="Hit enter to finish" set /p asd="Hit enter to finish"

View File

@@ -6,6 +6,8 @@ sc STOP ASUSSwitch
sc STOP ASUSSystemAnalysis sc STOP ASUSSystemAnalysis
sc STOP ASUSSystemDiagnosis sc STOP ASUSSystemDiagnosis
sc STOP ArmouryCrateControlInterface sc STOP ArmouryCrateControlInterface
sc STOP AsusCertService
sc STOP ASUSOptimization
sc config AsusAppService start= disabled sc config AsusAppService start= disabled
sc config ASUSLinkNear start= disabled sc config ASUSLinkNear start= disabled
@@ -15,5 +17,7 @@ sc config ASUSSwitch start= disabled
sc config ASUSSystemAnalysis start= disabled sc config ASUSSystemAnalysis start= disabled
sc config ASUSSystemDiagnosis start= disabled sc config ASUSSystemDiagnosis start= disabled
sc config ArmouryCrateControlInterface start= disabled sc config ArmouryCrateControlInterface start= disabled
sc config AsusCertService start= disabled
sc config ASUSOptimization start= disabled
set /p asd="Hit enter to finish" set /p asd="Hit enter to finish"