From 0c6007659f70498c3e0e2d8ec1f16688b5d48637 Mon Sep 17 00:00:00 2001 From: RaimondMoerman <56957002+RaimondMoerman@users.noreply.github.com> Date: Fri, 24 Jan 2025 19:20:45 +0100 Subject: [PATCH] Update DisableAutoUpdates.ps1 Your registryPath values did not contain the required : --- .../DisableAutoUpdates.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/DisableAutoUpdates.ps1 b/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/DisableAutoUpdates.ps1 index 8a66ab1ec..02a16d3a4 100644 --- a/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/DisableAutoUpdates.ps1 +++ b/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/DisableAutoUpdates.ps1 @@ -23,9 +23,9 @@ function Set-RegKey($registryPath, $registryKey, $registryValue) { $stopwatch = [System.Diagnostics.Stopwatch]::StartNew() Write-Host "***Starting AVD AIB CUSTOMIZER PHASE: Disable auto updates for MSIX AA applications - $((Get-Date).ToUniversalTime()) " -Set-RegKey -registryPath "HKLM\Software\Policies\Microsoft\WindowsStore" -registryKey "AutoDownload" -registryValue "2" -Set-RegKey -registryPath "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -registryKey "PreInstalledAppsEnabled" -registryValue "0" -Set-RegKey -registryPath "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Debug" -registryKey "ContentDeliveryAllowedOverride" -registryValue "0x2" +Set-RegKey -registryPath "HKLM:\Software\Policies\Microsoft\WindowsStore" -registryKey "AutoDownload" -registryValue "2" +Set-RegKey -registryPath "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -registryKey "PreInstalledAppsEnabled" -registryValue "0" +Set-RegKey -registryPath "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Debug" -registryKey "ContentDeliveryAllowedOverride" -registryValue "0x2" Disable-ScheduledTask -TaskPath "\Microsoft\Windows\WindowsUpdate\" -TaskName "Scheduled Start"