Created
March 27, 2023 17:17
-
-
Save HamedAsoodeh/3e979e866c4dbdcc53f1856ef45a4166 to your computer and use it in GitHub Desktop.
run as administrator powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
حتما دستورات رو با کاربر ادمینستراتور اجرا کنید