فهرست منبع

Added code to remove CloudStore

This is reference to issue #61
Richard Newton 6 سال پیش
والد
کامیت
f5e795dd04
1فایلهای تغییر یافته به همراه17 افزوده شده و 0 حذف شده
  1. 17 0
      Windows10DebloaterGUI.ps1

+ 17 - 0
Windows10DebloaterGUI.ps1

@@ -431,6 +431,15 @@ $RemoveAllBloatware.Add_Click( {
             If (Test-Path $Suggestions) {
                 Set-ItemProperty $Suggestions -Name SystemPaneSuggestionsEnabled -Value 0 -Verbose
             }
+            
+            
+            Write-Output "Removing CloudStore from registry if it exists"
+            $CloudStore = 'HKCUSoftware\Microsoft\Windows\CurrentVersion\CloudStore'
+            If (Test-Path $CloudStore) {
+            Stop-Process Explorer.exe -Force
+            Remove-Item $CloudStore
+            Start-Process Explorer.exe -Wait
+            }
   
             #Loads the registry keys/values below into the NTUSER.DAT file which prevents the apps from redownloading. Credit to a60wattfish
             reg load HKU\Default_User C:\Users\Default\NTUSER.DAT
@@ -674,6 +683,14 @@ $RemoveBloatNoBlacklist.Add_Click( {
             If (Test-Path $Suggestions) {
                 Set-ItemProperty $Suggestions -Name SystemPaneSuggestionsEnabled -Value 0 -Verbose
             }
+            
+            Write-Output "Removing CloudStore from registry if it exists"
+            $CloudStore = 'HKCUSoftware\Microsoft\Windows\CurrentVersion\CloudStore'
+            If (Test-Path $CloudStore) {
+            Stop-Process Explorer.exe -Force
+            Remove-Item $CloudStore
+            Start-Process Explorer.exe -Wait
+            }
   
             #Loads the registry keys/values below into the NTUSER.DAT file which prevents the apps from redownloading. Credit to a60wattfish
             reg load HKU\Default_User C:\Users\Default\NTUSER.DAT