Explorar o código

Update Windows10Debloater.ps1

Richard Newton %!s(int64=6) %!d(string=hai) anos
pai
achega
cdddf0b477
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      Windows10Debloater.ps1

+ 2 - 4
Windows10Debloater.ps1

@@ -268,12 +268,10 @@ Function Protect-Privacy {
     Set-ItemProperty $LocationConfig Status -Value 0 
         
     #Disables People icon on Taskbar
-        #Disables People icon on Taskbar
     Write-Output "Disabling People icon on Taskbar"
     $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People'
-    If (!(Test-Path $People)) {
-        mkdir $People -ErrorAction SilentlyContinue
-        New-ItemProperty $People -Name PeopleBand -Value 0 -Verbose
+    If (Test-Path $People) {
+        Set-ItemProperty $People -Name PeopleBand -Value 0 -Verbose
     }
         
     #Disables scheduled tasks that are considered unnecessary