fixed winget install

This commit is contained in:
dado
2025-10-26 15:15:52 +01:00
parent 07e940bcdf
commit fcbb34ea40

View File

@@ -701,7 +701,7 @@ foreach ($app in $appsToRemove) {
$RegistryPaths = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" $RegistryPaths = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent"
# Create the path if it doesn't exist # Create the path if it doesn't exist
if (-not (Test-Path $RegistryPaths)) { 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 the registry value to disable ads
Set-ItemProperty -Path $RegistryPaths -Name "DisableConsumerAccountStateContent" -Value 1 -Type DWORD -Force | Out-Null Set-ItemProperty -Path $RegistryPaths -Name "DisableConsumerAccountStateContent" -Value 1 -Type DWORD -Force | Out-Null