Powershell: Disable windows 10 update permanently


Windows Update:

It create problems when you are going to give a presentation and windows start to update itself for long. There is no setting available in control panel to stop it from downloading the update. One more problem is that it consumes the bandwidth in background to dowmload the updates.

Here is a way to control the windows 10 update behaviour:

Copy below script in notepad and save the file as noupdate.ps1  ( notepad save as text file by default so select all files from dropdown while saving)

Clear-Host
Write-Host "1 -> Never check for updates (Dont make you in trouble for your presentation)"
Write-Host "2 -> Check for updates but let me choose whether to download and install them(will not consume your bandwidth)"
Write-Host "3 -> Download updates but let me choose whether to install them"
Write-Host "4 -> Install updates automatically (recommended)"
Write-Host "Enter any character to exit"
Write-Host
switch(Read-Host "Choose Window Update Settings"){
       1 {$UpdateValue = 1}
       2 {$UpdateValue = 2}
       3 {$UpdateValue = 3}
       4 {$UpdateValue = 4}
       Default{Exit}
}
$AutoUpdatePath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update"
Set-ItemProperty -Path $AutoUpdatePath -Name AUOptions -Value $UpdateValue

Now right click on the noupdate.ps1 file and choose run in powershell

it will ask to change policy. Enter Y for yes.

Then it will ask 1 for permanently disable windows update,, 2 for ask before download.

You may choose 1 or 2 whichever is suitable for you.

Comments