Category filter
Script to disable automatic updates of Microsoft Store apps on Windows
Automatic update of Microsoft Store apps checks for updates automatically and installs the updates on the Windows devices when available without user intervention. However, since the process runs in the background, it can significantly impact the data bandwidth usage and battery life. Therefore, this feature is unsuitable for users without flexible internet/data plans who prefer updating only the necessary apps manually. In such circumstances, device admins can remotely run scripts to disable the automatic updates of Microsoft Store apps using the Execute Custom Script action.
Disable automatic updates of Microsoft Store apps
The following scripts disable automatic updates of Microsoft Store apps by creating a Reg_Dword entry with the name AutoDownload and the value ‘2’ under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore in the Windows Registry.
Batch Script
1 |
reg add HKLM\SOFTWARE\Policies\Microsoft\WindowsStore /v AutoDownload /t REG_DWORD /d 2 /f |
PowerShell Script
1 2 3 4 5 6 7 8 9 10 11 12 |
$Name = “AutoDownload” $Value = 2 $Path = “HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore” If ((Test-Path $Path) -eq $false){ New-Item -Path $Path -ItemType Directory } If (-!(Get-ItemProperty -Path $Path -Name $name -ErrorAction SilentlyContinue)){ New-ItemProperty -Path $Path -Name $Name -PropertyType DWord -Value $Value } else{ Set-ItemProperty -Path $Path -Name $Name -Value $Value } |