Browse Source

This fixes issue #76

Richard Newton 6 years ago
parent
commit
3f39bf232f
1 changed files with 3 additions and 4 deletions
  1. 3 4
      Windows10SysPrepDebloater.ps1

+ 3 - 4
Windows10SysPrepDebloater.ps1

@@ -152,10 +152,9 @@ Function Protect-Privacy {
     
     #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
+    $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People'
+    If (Test-Path $People) {
+        Set-ItemProperty $People -Name PeopleBand -Value 0 -Verbose
     }
 
     #Disables suggestions on start menu