|
@@ -20,28 +20,47 @@ namespace Optimizer
|
|
{
|
|
{
|
|
public static class Optimize
|
|
public static class Optimize
|
|
{
|
|
{
|
|
- readonly static string CompatTelRunnerFile = Path.GetPathRoot(Environment.SystemDirectory) + @"Windows\System32\CompatTelRunner.exe";
|
|
|
|
- readonly static string CompatTelRunnerFileOff = "CompatTelRunner.exe.OFF";
|
|
|
|
|
|
+ readonly static string CompatTelRunnerFile = Path.Combine(Path.GetPathRoot(Environment.SystemDirectory), @"Windows\System32\CompatTelRunner.exe");
|
|
|
|
+
|
|
|
|
+ readonly static string CompatTelRunnerFileOff = Path.Combine(Path.GetPathRoot(Environment.SystemDirectory), @"Windows\System32\CompatTelRunner.exe.OFF");
|
|
|
|
+
|
|
|
|
+ readonly static string CompatTelRunnerFileName = "CompatTelRunner.exe";
|
|
|
|
+ readonly static string CompatTelRunnerFileNameOff = "CompatTelRunner.exe.OFF";
|
|
|
|
|
|
internal static void DisableTelemetryRunner()
|
|
internal static void DisableTelemetryRunner()
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
|
|
+ if (File.Exists(CompatTelRunnerFileOff)) File.Delete(CompatTelRunnerFileOff);
|
|
|
|
+
|
|
if (File.Exists(CompatTelRunnerFile))
|
|
if (File.Exists(CompatTelRunnerFile))
|
|
{
|
|
{
|
|
Utilities.RunCommand(string.Format("takeown /F {0}", CompatTelRunnerFile));
|
|
Utilities.RunCommand(string.Format("takeown /F {0}", CompatTelRunnerFile));
|
|
Utilities.RunCommand(string.Format("icacls \"{0}\" /grant administrators:F", CompatTelRunnerFile));
|
|
Utilities.RunCommand(string.Format("icacls \"{0}\" /grant administrators:F", CompatTelRunnerFile));
|
|
|
|
|
|
- FileSystem.RenameFile(CompatTelRunnerFile, CompatTelRunnerFileOff);
|
|
|
|
|
|
+ FileSystem.RenameFile(CompatTelRunnerFile, CompatTelRunnerFileNameOff);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void EnableTelemetryRunner()
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ if (File.Exists(CompatTelRunnerFileOff))
|
|
|
|
+ {
|
|
|
|
+ FileSystem.RenameFile(CompatTelRunnerFileOff, CompatTelRunnerFileName);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
catch { }
|
|
catch { }
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void PerformanceTweaks()
|
|
|
|
|
|
+ internal static void EnablePerformanceTweaks()
|
|
{
|
|
{
|
|
Registry.SetValue("HKEY_CLASSES_ROOT\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\Copy To", "", "{C2FBB630-2971-11D1-A18C-00C04FD75D13}");
|
|
Registry.SetValue("HKEY_CLASSES_ROOT\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\Copy To", "", "{C2FBB630-2971-11D1-A18C-00C04FD75D13}");
|
|
Registry.SetValue("HKEY_CLASSES_ROOT\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\Move To", "", "{C2FBB631-2971-11D1-A18C-00C04FD75D13}");
|
|
Registry.SetValue("HKEY_CLASSES_ROOT\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\Move To", "", "{C2FBB631-2971-11D1-A18C-00C04FD75D13}");
|
|
|
|
+
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "AutoEndTasks", "1");
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "AutoEndTasks", "1");
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "HungAppTimeout", "1000");
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "HungAppTimeout", "1000");
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "MenuShowDelay", "8");
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "MenuShowDelay", "8");
|
|
@@ -68,24 +87,113 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", "Priority", 6, RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", "Priority", 6, RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void DisablePerformanceTweaks()
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ Registry.ClassesRoot.DeleteSubKeyTree(@"AllFilesystemObjects\\shellex\\ContextMenuHandlers\\Copy To", false);
|
|
|
|
+ Registry.ClassesRoot.DeleteSubKeyTree(@"AllFilesystemObjects\\shellex\\ContextMenuHandlers\\Move To", false);
|
|
|
|
+
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Control Panel\Desktop", true).DeleteValue("AutoEndTasks", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Control Panel\Desktop", true).DeleteValue("HungAppTimeout", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Control Panel\Desktop", true).DeleteValue("WaitToKillAppTimeout", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Control Panel\Desktop", true).DeleteValue("LowLevelHooksTimeout", false);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "MenuShowDelay", "400");
|
|
|
|
+ Registry.SetValue("HKEY_CURRENT_USER\\Control Panel\\Mouse", "MouseHoverTime", "400");
|
|
|
|
+
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", true).DeleteValue("NoLowDiskSpaceChecks", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", true).DeleteValue("LinkResolveIgnoreLinkInfo", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", true).DeleteValue("NoResolveSearch", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", true).DeleteValue("NoResolveTrack", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", true).DeleteValue("NoInternetOpenWith", false);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control", "WaitToKillServiceTimeout", "5000");
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DiagTrack", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmwappushservice", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Utilities.StartService("DiagTrack");
|
|
|
|
+ Utilities.StartService("diagnosticshub.standardcollector.service");
|
|
|
|
+ Utilities.StartService("dmwappushservice");
|
|
|
|
+
|
|
|
|
+ Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile", true).DeleteValue("SystemResponsiveness", false);
|
|
|
|
+ Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", true).DeleteValue("GPU Priority", false);
|
|
|
|
+ Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", true).DeleteValue("Priority", false);
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void DisableTelemetryServices()
|
|
|
|
+ {
|
|
|
|
+ Utilities.StopService("DiagTrack");
|
|
|
|
+ Utilities.StopService("diagnosticshub.standardcollector.service");
|
|
|
|
+ Utilities.StopService("dmwappushservice");
|
|
|
|
+ Utilities.StopService("DcpSvc");
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DiagTrack", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmwappushservice", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcpSvc", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void EnableTelemetryServices()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DiagTrack", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmwappushservice", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcpSvc", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Utilities.StartService("DiagTrack");
|
|
|
|
+ Utilities.StartService("diagnosticshub.standardcollector.service");
|
|
|
|
+ Utilities.StartService("dmwappushservice");
|
|
|
|
+ Utilities.StartService("DcpSvc");
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableMediaPlayerSharing()
|
|
internal static void DisableMediaPlayerSharing()
|
|
{
|
|
{
|
|
Utilities.StopService("WMPNetworkSvc");
|
|
Utilities.StopService("WMPNetworkSvc");
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WMPNetworkSvc", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WMPNetworkSvc", "Start", "4", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableMediaPlayerSharing()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WMPNetworkSvc", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Utilities.StartService("WMPNetworkSvc");
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableNetworkThrottling()
|
|
internal static void DisableNetworkThrottling()
|
|
{
|
|
{
|
|
Int32 tempInt = Convert.ToInt32("ffffffff", 16);
|
|
Int32 tempInt = Convert.ToInt32("ffffffff", 16);
|
|
Registry.SetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile", "NetworkThrottlingIndex", tempInt, RegistryValueKind.DWord);
|
|
Registry.SetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile", "NetworkThrottlingIndex", tempInt, RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void BlockSkypeAds()
|
|
|
|
|
|
+ internal static void EnableNetworkThrottling()
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ Registry.LocalMachine.OpenSubKey(@"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile", true).DeleteValue("NetworkThrottlingIndex", false);
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void DisableSkypeAds()
|
|
{
|
|
{
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\skype.com\\apps", "https", "00000004", RegistryValueKind.DWord);
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\skype.com\\apps", "https", "00000004", RegistryValueKind.DWord);
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\skype.com\\apps", "http", "00000004", RegistryValueKind.DWord);
|
|
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\skype.com\\apps", "http", "00000004", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableSkypeAds()
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\skype.com\\apps", true).DeleteValue("http", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\skype.com\\apps", true).DeleteValue("https", false);
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableHomeGroup()
|
|
internal static void DisableHomeGroup()
|
|
{
|
|
{
|
|
Utilities.StopService("HomeGroupListener");
|
|
Utilities.StopService("HomeGroupListener");
|
|
@@ -95,13 +203,22 @@ namespace Optimizer
|
|
Registry.SetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HomeGroupProvider", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HomeGroupProvider", "Start", "4", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void DisablePrintSpooler()
|
|
|
|
|
|
+ internal static void EnableHomeGroup()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HomeGroupListener", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HomeGroupProvider", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Utilities.StartService("HomeGroupListener");
|
|
|
|
+ Utilities.StartService("HomeGroupProvider");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void DisablePrintService()
|
|
{
|
|
{
|
|
Utilities.StopService("Spooler");
|
|
Utilities.StopService("Spooler");
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler", "Start", "3", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler", "Start", "3", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void EnablePrintSpooler()
|
|
|
|
|
|
+ internal static void EnablePrintService()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler", "Start", "2", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler", "Start", "2", RegistryValueKind.DWord);
|
|
Utilities.StartService("Spooler");
|
|
Utilities.StartService("Spooler");
|
|
@@ -113,6 +230,12 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysMain", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysMain", "Start", "4", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableSuperfetch()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysMain", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Utilities.StartService("SysMain");
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableSystemRestore()
|
|
internal static void DisableSystemRestore()
|
|
{
|
|
{
|
|
try
|
|
try
|
|
@@ -139,6 +262,13 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore", "DisableConfig", "00000001", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore", "DisableConfig", "00000001", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableSystemRestore()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore", "DisableConfig", "00000000", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Utilities.StartService("VSS");
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableDefender()
|
|
internal static void DisableDefender()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", "1", RegistryValueKind.DWord);
|
|
@@ -158,71 +288,114 @@ namespace Optimizer
|
|
Utilities.RunCommand("regsvr32 /u /s \"C:\\Program Files\\Windows Defender\\shellext.dll\"");
|
|
Utilities.RunCommand("regsvr32 /u /s \"C:\\Program Files\\Windows Defender\\shellext.dll\"");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableDefender()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet", "SpyNetReporting", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet", "SubmitSamplesConsent", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MRT", "DontReportInfectionInformation", "0", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableErrorReporting()
|
|
internal static void DisableErrorReporting()
|
|
{
|
|
{
|
|
Utilities.StopService("WerSvc");
|
|
Utilities.StopService("WerSvc");
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WerSvc", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WerSvc", "Start", "4", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void DisableTransparency()
|
|
|
|
|
|
+ internal static void EnableErrorReporting()
|
|
{
|
|
{
|
|
- Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "EnableTransparency", "00000000", RegistryValueKind.DWord);
|
|
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WerSvc", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Utilities.StartService("WerSvc");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // not used
|
|
|
|
+
|
|
|
|
+ //internal static void DisableTransparency()
|
|
|
|
+ //{
|
|
|
|
+ // Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "EnableTransparency", "00000000", RegistryValueKind.DWord);
|
|
|
|
+ //}
|
|
|
|
+
|
|
|
|
+ //internal static void EnableTransparency()
|
|
|
|
+ //{
|
|
|
|
+ // Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "EnableTransparency", "00000001", RegistryValueKind.DWord);
|
|
|
|
+ //}
|
|
|
|
+
|
|
internal static void EnableDarkTheme()
|
|
internal static void EnableDarkTheme()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "AppsUseLightTheme", "00000000", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "AppsUseLightTheme", "00000000", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void RestoreLegacyVolumeSlider()
|
|
|
|
|
|
+ internal static void EnableLightTheme()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "AppsUseLightTheme", "00000001", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void EnableLegacyVolumeSlider()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC", "EnableMtcUvc", "00000000", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC", "EnableMtcUvc", "00000000", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void RestoreTaskbarColor()
|
|
|
|
|
|
+ internal static void DisableLegacyVolumeSlider()
|
|
{
|
|
{
|
|
- // enable title bar color
|
|
|
|
- Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM", "ColorPrevalence", "00000001", RegistryValueKind.DWord);
|
|
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC", "EnableMtcUvc", "00000001", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
|
|
- // disable task bar, start menu and action center color
|
|
|
|
|
|
+ internal static void EnableTaskbarColor()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM", "ColorPrevalence", "00000001", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "ColorPrevalence", "00000000", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "ColorPrevalence", "00000000", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void DisableTaskbarColor()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM", "ColorPrevalence", "00000000", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "ColorPrevalence", "00000001", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void UninstallOneDrive()
|
|
internal static void UninstallOneDrive()
|
|
{
|
|
{
|
|
- Utilities.RunBatchFile(Required.RequiredFolder + "\\OneDrive_Uninstaller.cmd");
|
|
|
|
|
|
+ Utilities.RunBatchFile(Required.ScriptsFolder + "OneDrive_Uninstaller.cmd");
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive", "DisableFileSyncNGSC", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive", "DisableFileSyncNGSC", "1", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void InstallOneDrive()
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive", "DisableFileSyncNGSC", "0", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ string oneDriveInstaller;
|
|
|
|
+ if (Environment.Is64BitOperatingSystem)
|
|
|
|
+ {
|
|
|
|
+ oneDriveInstaller = Path.Combine(Path.GetPathRoot(Environment.SystemDirectory), "Windows\\SysWOW64\\OneDriveSetup.exe");
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ oneDriveInstaller = Path.Combine(Path.GetPathRoot(Environment.SystemDirectory), "Windows\\System32\\OneDriveSetup.exe");
|
|
|
|
+ }
|
|
|
|
+ Process.Start(oneDriveInstaller);
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableCortana()
|
|
internal static void DisableCortana()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortana", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortana", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "DisableWebSearch", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "DisableWebSearch", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "ConnectedSearchUseWeb", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "ConnectedSearchUseWeb", "0", RegistryValueKind.DWord);
|
|
- }
|
|
|
|
|
|
|
|
- internal static void DisableDataTelemetry()
|
|
|
|
- {
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection", "AllowTelemetry", "0", RegistryValueKind.DWord);
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener", "Start", "0", RegistryValueKind.DWord);
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener", "Start", "0", RegistryValueKind.DWord);
|
|
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search", "HistoryViewEnabled", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search", "DeviceHistoryEnabled", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void DisableDiagnosticsTracking()
|
|
|
|
|
|
+ internal static void EnableCortana()
|
|
{
|
|
{
|
|
- Utilities.StopService("DiagTrack");
|
|
|
|
- Utilities.StopService("diagnosticshub.standardcollector.service");
|
|
|
|
- Utilities.StopService("dmwappushservice");
|
|
|
|
-
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DiagTrack", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmwappushservice", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
- }
|
|
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortana", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "DisableWebSearch", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "ConnectedSearchUseWeb", "1", RegistryValueKind.DWord);
|
|
|
|
|
|
- internal static void DisableWAPPush()
|
|
|
|
- {
|
|
|
|
- Utilities.StopService("dmwappushservice");
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmwappushservice", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search", "HistoryViewEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search", "DeviceHistoryEnabled", "1", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
internal static void DisableXboxLive()
|
|
internal static void DisableXboxLive()
|
|
@@ -239,7 +412,27 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XboxGipSvc", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XboxGipSvc", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\xbgm", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\xbgm", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
|
|
- Utilities.RunBatchFile(Required.RequiredFolder + "\\DisableXboxTasks.bat");
|
|
|
|
|
|
+ Utilities.RunBatchFile(Required.ScriptsFolder + "DisableXboxTasks.bat");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void EnableXboxLive()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XboxNetApiSvc", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XblAuthManager", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XblGameSave", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XboxGipSvc", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\xbgm", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ if (!File.Exists(Required.ScriptsFolder + "EnableXboxTasks.bat"))
|
|
|
|
+ {
|
|
|
|
+ File.WriteAllText(Required.ScriptsFolder + "EnableXboxTasks.bat", Properties.Resources.EnableXboxTasks);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+
|
|
|
|
+ Utilities.RunBatchFile(Required.ScriptsFolder + "EnableXboxTasks.bat");
|
|
}
|
|
}
|
|
|
|
|
|
internal static void DisableAutomaticUpdates()
|
|
internal static void DisableAutomaticUpdates()
|
|
@@ -249,37 +442,48 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config", "DODownloadMode", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config", "DODownloadMode", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void RemoveWindows10Icon()
|
|
|
|
|
|
+ internal static void EnableAutomaticUpdates()
|
|
{
|
|
{
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GWX", "DisableGWX", "00000001", RegistryValueKind.DWord);
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "DisableOSUpgrade", "00000001", RegistryValueKind.DWord);
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "AllowOSUpgrade", "00000000", RegistryValueKind.DWord);
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "ReservationsAllowed", "00000000", RegistryValueKind.DWord);
|
|
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU", "AUOptions", "5", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU", "NoAutoRebootWithLoggedOnUsers", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config", "DODownloadMode", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU", "NoAutoUpdate", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // no longer useful
|
|
|
|
+
|
|
|
|
+ //internal static void RemoveWindows10Icon()
|
|
|
|
+ //{
|
|
|
|
+ // Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GWX", "DisableGWX", "00000001", RegistryValueKind.DWord);
|
|
|
|
+ // Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "DisableOSUpgrade", "00000001", RegistryValueKind.DWord);
|
|
|
|
+ // Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "AllowOSUpgrade", "00000000", RegistryValueKind.DWord);
|
|
|
|
+ // Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "ReservationsAllowed", "00000000", RegistryValueKind.DWord);
|
|
|
|
+ //}
|
|
|
|
+
|
|
internal static void DisableOneDrive()
|
|
internal static void DisableOneDrive()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive", "DisableFileSyncNGSC", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive", "DisableFileSyncNGSC", "1", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableOneDrive()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive", "DisableFileSyncNGSC", "0", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void EnableSensorServices()
|
|
internal static void EnableSensorServices()
|
|
{
|
|
{
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcpSvc", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensrSvc", "Start", "2", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensrSvc", "Start", "2", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensorService", "Start", "2", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensorService", "Start", "2", RegistryValueKind.DWord);
|
|
|
|
|
|
- Utilities.StartService("DcpSvc");
|
|
|
|
Utilities.StartService("SensrSvc");
|
|
Utilities.StartService("SensrSvc");
|
|
Utilities.StartService("SensorService");
|
|
Utilities.StartService("SensorService");
|
|
}
|
|
}
|
|
|
|
|
|
internal static void DisableSensorServices()
|
|
internal static void DisableSensorServices()
|
|
{
|
|
{
|
|
- Utilities.StopService("DcpSvc");
|
|
|
|
Utilities.StopService("SensrSvc");
|
|
Utilities.StopService("SensrSvc");
|
|
Utilities.StopService("SensorService");
|
|
Utilities.StopService("SensorService");
|
|
-
|
|
|
|
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcpSvc", "Start", "4", RegistryValueKind.DWord);
|
|
|
|
|
|
+
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensrSvc", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensrSvc", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensorService", "Start", "4", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensorService", "Start", "4", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
@@ -287,13 +491,49 @@ namespace Optimizer
|
|
internal static void DisableTelemetryTasks()
|
|
internal static void DisableTelemetryTasks()
|
|
{
|
|
{
|
|
DisableTelemetryRunner();
|
|
DisableTelemetryRunner();
|
|
- Utilities.RunBatchFile(Required.RequiredFolder + "\\DisableTelemetryTasks.bat");
|
|
|
|
|
|
+ Utilities.RunBatchFile(Required.ScriptsFolder + "DisableTelemetryTasks.bat");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void EnableTelemetryTasks()
|
|
|
|
+ {
|
|
|
|
+ EnableTelemetryRunner();
|
|
|
|
+
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ if (!File.Exists(Required.ScriptsFolder + "EnableTelemetryTasks.bat"))
|
|
|
|
+ {
|
|
|
|
+ File.WriteAllText(Required.ScriptsFolder + "EnableTelemetryTasks.bat", Properties.Resources.EnableTelemetryTasks);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+
|
|
|
|
+ Utilities.RunBatchFile(Required.ScriptsFolder + "EnableTelemetryTasks.bat");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void DisableOffice2016Telemetry()
|
|
|
|
+ {
|
|
|
|
+ Utilities.RunBatchFile(Required.ScriptsFolder + "DisableOfficeTelemetryTasks.bat");
|
|
|
|
+ Utilities.ImportRegistryScript(Required.ScriptsFolder + "DisableOfficeTelemetryTasks.reg");
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void DisableOfficeTelemetryTasks()
|
|
|
|
|
|
+ internal static void EnableOffice2016Telemetry()
|
|
{
|
|
{
|
|
- Utilities.RunBatchFile(Required.RequiredFolder + "\\DisableOfficeTelemetryTasks.bat");
|
|
|
|
- Utilities.ImportRegistryScript(Required.RequiredFolder + "\\DisableOfficeTelemetryTasks.reg");
|
|
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ if (!File.Exists(Required.ScriptsFolder + "EnableOfficeTelemetryTasks.reg"))
|
|
|
|
+ {
|
|
|
|
+ File.WriteAllText(Required.ScriptsFolder + "EnableOfficeTelemetryTasks.reg", Properties.Resources.EnableOfficeTelemetry);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (!File.Exists(Required.ScriptsFolder + "EnableOfficeTelemetryTasks.bat"))
|
|
|
|
+ {
|
|
|
|
+ File.WriteAllText(Required.ScriptsFolder + "EnableOfficeTelemetryTasks.bat", Properties.Resources.EnableOfficeTelemetryTasks);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+
|
|
|
|
+ Utilities.RunBatchFile(Required.ScriptsFolder + "EnableOfficeTelemetryTasks.bat");
|
|
|
|
+ Utilities.ImportRegistryScript(Required.ScriptsFolder + "EnableOfficeTelemetryTasks.reg");
|
|
}
|
|
}
|
|
|
|
|
|
internal static void DisablePrivacyOptions()
|
|
internal static void DisablePrivacyOptions()
|
|
@@ -356,12 +596,14 @@ namespace Optimizer
|
|
|
|
|
|
// Other devices
|
|
// Other devices
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy", "LetAppsSyncWithDevices", "2", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy", "LetAppsSyncWithDevices", "2", RegistryValueKind.DWord);
|
|
- Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled", "Value", "0", RegistryValueKind.DWord);
|
|
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled", "Value", "Deny", RegistryValueKind.String);
|
|
|
|
|
|
// Feedback & diagnostics
|
|
// Feedback & diagnostics
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Siuf\Rules", "PeriodInNanoSeconds", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Siuf\Rules", "PeriodInNanoSeconds", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Siuf\Rules", "NumberOfSIUFInPeriod", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Siuf\Rules", "NumberOfSIUFInPeriod", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection", "AllowTelemetry", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection", "AllowTelemetry", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener", "Start", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener", "Start", "0", RegistryValueKind.DWord);
|
|
|
|
|
|
// App diagnostics
|
|
// App diagnostics
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2297E4E2-5DBE-466D-A12B-0F8286F0D9CA}", "Value", "Deny", RegistryValueKind.String);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2297E4E2-5DBE-466D-A12B-0F8286F0D9CA}", "Value", "Deny", RegistryValueKind.String);
|
|
@@ -371,6 +613,7 @@ namespace Optimizer
|
|
|
|
|
|
// Hotspot 2.0
|
|
// Hotspot 2.0
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\Tethering", "Hotspot2SignUp", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\Tethering", "Hotspot2SignUp", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WlanSvc\AnqpCache", "OsuRegistrationStatus", "0", RegistryValueKind.DWord);
|
|
|
|
|
|
// Mobile Hotspot remote startup
|
|
// Mobile Hotspot remote startup
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\Tethering", "RemoteStartupDisabled", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\Tethering", "RemoteStartupDisabled", "1", RegistryValueKind.DWord);
|
|
@@ -379,31 +622,141 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Connect", "AllowProjectionToPC", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Connect", "AllowProjectionToPC", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnablePrivacyOptions()
|
|
|
|
+ {
|
|
|
|
+ // Turn off KMS Client Online AVS Validation
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform", "NoGenTicket", "0", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // General
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo", "Enabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost\EnableWebContentEvaluation", "Enabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Control Panel\International\User Profile", "HttpAcceptLanguageOptOut", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SmartGlass", "UserAuthPolicy", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // Location
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E6AD100E-5F4E-44CD-BE0F-2265D88D14F5}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Permissions\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}", "SensorPermissionState", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // Camera
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E5323777-F976-4f5b-9B55-B94699C46E44}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Microphone
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2EEF81BE-33FA-4800-9670-1CD474972C3F}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Notifications
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{52079E78-A92B-413F-B213-E8FE35712E72}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Speech, inking & typing
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Personalization\Settings", "AcceptedPrivacyPolicy", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language", "Enabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputPersonalization", "RestrictImplicitTextCollection", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputPersonalization", "RestrictImplicitInkCollection", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore", "HarvestContacts", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Input\TIPC", "Enabled", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // Account info
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Contacts
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Calendar
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{D89823BA-7180-4B81-B50C-7E471E6121A3}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Call history
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{8BC668CF-7728-45BD-93F8-CF2B3B41D7AB}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Email
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{9231CB4C-BF57-4AF3-8C55-FDA7BFCC04C5}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Tasks
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E390DF20-07DF-446D-B962-F5C953062741}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Messaging
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{21157C1F-2651-4CC1-90CA-1F28B02263F6}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{992AFA70-6F47-4148-B3E9-3003349C1548}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Radios
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{A8804298-2D5F-42E3-9531-9C8C39EB29CE}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Other devices
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy", "LetAppsSyncWithDevices", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Feedback & diagnostics
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Siuf\Rules", true).DeleteValue("PeriodInNanoSeconds", false);
|
|
|
|
+ Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Siuf\Rules", true).DeleteValue("NumberOfSIUFInPeriod", false);
|
|
|
|
+ }
|
|
|
|
+ catch { }
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection", "AllowTelemetry", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener", "Start", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener", "Start", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // App diagnostics
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2297E4E2-5DBE-466D-A12B-0F8286F0D9CA}", "Value", "Allow", RegistryValueKind.String);
|
|
|
|
+
|
|
|
|
+ // Wi-Fi Sense
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config", "AutoConnectAllowedOEM", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // Hotspot 2.0
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\Tethering", "Hotspot2SignUp", "0", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WlanSvc\AnqpCache", "OsuRegistrationStatus", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // Mobile Hotspot remote startup
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\Tethering", "RemoteStartupDisabled", "0", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // Projecting to this PC
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Connect", "AllowProjectionToPC", "1", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableGameBar()
|
|
internal static void DisableGameBar()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR", "AppCaptureEnabled", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR", "AppCaptureEnabled", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\System\GameConfigStore", "GameDVR_Enabled", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\System\GameConfigStore", "GameDVR_Enabled", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- internal static void DisableQuickAccess()
|
|
|
|
|
|
+ internal static void EnableGameBar()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR", "AppCaptureEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\System\GameConfigStore", "GameDVR_Enabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ internal static void DisableQuickAccessHistory()
|
|
{
|
|
{
|
|
- // Hide Sync Provider ads
|
|
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ShowSyncProviderNotifications", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ShowSyncProviderNotifications", "0", RegistryValueKind.DWord);
|
|
|
|
|
|
- // Disable Quick Access history
|
|
|
|
using (RegistryKey k = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer", true))
|
|
using (RegistryKey k = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer", true))
|
|
{
|
|
{
|
|
k.SetValue("ShowFrequent", 0, RegistryValueKind.DWord);
|
|
k.SetValue("ShowFrequent", 0, RegistryValueKind.DWord);
|
|
k.SetValue("ShowRecent", 0, RegistryValueKind.DWord);
|
|
k.SetValue("ShowRecent", 0, RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
- // File Explorer opens 'This PC' by default
|
|
|
|
using (RegistryKey k = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", true))
|
|
using (RegistryKey k = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", true))
|
|
{
|
|
{
|
|
k.SetValue("LaunchTo", 1, RegistryValueKind.DWord);
|
|
k.SetValue("LaunchTo", 1, RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableQuickAccessHistory()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ShowSyncProviderNotifications", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ using (RegistryKey k = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer", true))
|
|
|
|
+ {
|
|
|
|
+ k.SetValue("ShowFrequent", 1, RegistryValueKind.DWord);
|
|
|
|
+ k.SetValue("ShowRecent", 1, RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ using (RegistryKey k = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", true))
|
|
|
|
+ {
|
|
|
|
+ k.SetValue("LaunchTo", 2, RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableStartMenuAds()
|
|
internal static void DisableStartMenuAds()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SystemPaneSuggestionsEnabled", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SystemPaneSuggestionsEnabled", "0", RegistryValueKind.DWord);
|
|
@@ -417,6 +770,19 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "FeatureManagementEnabled", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "FeatureManagementEnabled", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableStartMenuAds()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SystemPaneSuggestionsEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContent-338388Enabled", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SubscribedContentEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SoftLandingEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "FeatureManagementEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableSilentAppInstall()
|
|
internal static void DisableSilentAppInstall()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SilentInstalledAppsEnabled", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SilentInstalledAppsEnabled", "0", RegistryValueKind.DWord);
|
|
@@ -426,22 +792,47 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "OemPreInstalledAppsEnabled", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "OemPreInstalledAppsEnabled", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableSilentAppInstall()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "SilentInstalledAppsEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "PreInstalledAppsEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager", "OemPreInstalledAppsEnabled", "1", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableMyPeople()
|
|
internal static void DisableMyPeople()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People", "PeopleBand", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People", "PeopleBand", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableMyPeople()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People", "PeopleBand", "1", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void ExcludeDrivers()
|
|
internal static void ExcludeDrivers()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "ExcludeWUDriversInQualityUpdate", "1", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "ExcludeWUDriversInQualityUpdate", "1", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void IncludeDrivers()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "ExcludeWUDriversInQualityUpdate", "0", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableWindowsInk()
|
|
internal static void DisableWindowsInk()
|
|
{
|
|
{
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsInkWorkspace", "AllowWindowsInkWorkspace", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsInkWorkspace", "AllowWindowsInkWorkspace", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsInkWorkspace", "AllowSuggestedAppsInWindowsInkWorkspace", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsInkWorkspace", "AllowSuggestedAppsInWindowsInkWorkspace", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ internal static void EnableWindowsInk()
|
|
|
|
+ {
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsInkWorkspace", "AllowWindowsInkWorkspace", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsInkWorkspace", "AllowSuggestedAppsInWindowsInkWorkspace", "1", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
|
|
+
|
|
internal static void DisableSpellingAndTypingFeatures()
|
|
internal static void DisableSpellingAndTypingFeatures()
|
|
{
|
|
{
|
|
// Spelling
|
|
// Spelling
|
|
@@ -454,5 +845,18 @@ namespace Optimizer
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnablePredictionSpaceInsertion", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnablePredictionSpaceInsertion", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnableTextPrediction", "0", RegistryValueKind.DWord);
|
|
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnableTextPrediction", "0", RegistryValueKind.DWord);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ internal static void EnableSpellingAndTypingFeatures()
|
|
|
|
+ {
|
|
|
|
+ // Spelling
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnableAutocorrection", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnableSpellchecking", "1", RegistryValueKind.DWord);
|
|
|
|
+
|
|
|
|
+ // Typing
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnableDoubleTapSpace", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnableInkingWithTouch", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnablePredictionSpaceInsertion", "1", RegistryValueKind.DWord);
|
|
|
|
+ Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\TabletTip\1.7", "EnableTextPrediction", "1", RegistryValueKind.DWord);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|