Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HamedAsoodeh/3e979e866c4dbdcc53f1856ef45a4166 to your computer and use it in GitHub Desktop.
Save HamedAsoodeh/3e979e866c4dbdcc53f1856ef45a4166 to your computer and use it in GitHub Desktop.
run as administrator powershell
sc.exe stop wuauserv
sc.exe query wuauserv
sc.exe config wuauserv start=disabled
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\DksCfg\Parameters -Name IgnoreWindowsUpdate -type DWord -Value 1
Set-ItemProperty -Path HKLM:\SOFTWARE\DKS\WindowsUpdate -Name Disabled -type DWord -Value 1
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU -Name NoAutoUpdate -type DWord -Value 1
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU -Name NoAutoRebootWithLoggedOnUsers -type DWord -Value 1
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Name ElevateNonAdmins -Type DWord -Value 0
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU -Name AUOptions -type DWord -Value 1
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU -Name ScheduledInstallDay -type DWord -Value 7
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU -Name ScheduledInstallTime -type DWord -Value 3
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update -Name AUOptions -type DWord -Value
@HamedAsoodeh
Copy link
Author

حتما دستورات رو با کاربر ادمینستراتور اجرا کنید

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment