Skip to content

Commit

Permalink
Update Optimize.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Feb 28, 2022
1 parent 6a37c46 commit 9ffbda5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Optimizer/Optimize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,7 @@ internal static void DisableQuickAccessHistory()

// Disable File History
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\FileHistory", "Disabled", "1", RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\File History", "Disabled", "1", RegistryValueKind.DWord);

// Disable News and Weather
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Feeds", "ShellFeedsTaskbarViewMode", "2", RegistryValueKind.DWord);
Expand Down Expand Up @@ -1161,6 +1162,7 @@ internal static void EnableQuickAccessHistory()
}

Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Policies\Microsoft\Windows\FileHistory", true).DeleteValue("Disabled", false);
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Policies\Microsoft\Windows\File History", true).DeleteValue("Disabled", false);
Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Search", true).DeleteValue("SearchboxTaskbarMode", false);
Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Feeds", true).DeleteValue("ShellFeedsTaskbarViewMode", false);
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", true).DeleteValue("HideSCAMeetNow", false);
Expand Down

0 comments on commit 9ffbda5

Please sign in to comment.