diff --git a/configwinpc.ps1 b/configwinpc.ps1 index 87048a8..dee0305 100644 --- a/configwinpc.ps1 +++ b/configwinpc.ps1 @@ -701,7 +701,7 @@ foreach ($app in $appsToRemove) { $RegistryPaths = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" # Create the path if it doesn't exist if (-not (Test-Path $RegistryPaths)) { - New-Item -Path $RegistryPaths -Force | Out-Null + New-Item -Path $RegistryPaths -Force } # Set the registry value to disable ads Set-ItemProperty -Path $RegistryPaths -Name "DisableConsumerAccountStateContent" -Value 1 -Type DWORD -Force | Out-Null