Pause Win10/Win11 updates - Windows
By Aaliyah
at 2022-01-24T03:58
at 2022-01-24T03:58
Table of Contents
原文:
https://stackoverflow.com/questions/70261571/
pause-windows-11-updates-with-powershell
Pause Windows 11 updates with powershell
去年12月14日用舊文章的 reg 位置找相關資料,
剛好約七天前有國外網友找到方法
HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings
用管理員權限執行 powershell
複製原文內容即可
Admin> powershell
PS C:> (Copy-paste here)
分析:原本只能暫停一次,系統會檢查暫停開始和結束時間
國外網友分析出資料格式,寫好powershell
所以可以無限暫停更新,系統不會自動偷偷重開機
Win10:
$pause = (Get-Date).AddDays(35)
$pause = $pause.ToUniversalTime().ToString( "yyyy-MM-ddTHH:mm:ssZ" )
$pause_start = (Get-Date)
$pause_start = $pause_start.ToUniversalTime().ToString( "yyyy-MM-ddTHH:mm:ssZ" )
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseUpdatesExpiryTime' -Value $pause
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseFeatureUpdatesStartTime' -Value $pause_start
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseFeatureUpdatesEndTime' -Value $pause
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseQualityUpdatesStartTime' -Value $pause_start
Set-itemproperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseQualityUpdatesEndTime' -Value $pause
Win11:
$pause = (Get-Date).AddDays(35)
$pause = $pause.ToUniversalTime().ToString( "yyyy-MM-ddTHH:mm:ssZ" )
$pause_start = (Get-Date)
$pause_start = $pause_start.ToUniversalTime().ToString( "yyyy-MM-ddTHH:mm:ssZ" )
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseUpdatesExpiryTime' -Value $pause
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseFeatureUpdatesStartTime' -Value $pause_start
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseFeatureUpdatesEndTime' -Value $pause
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseQualityUpdatesStartTime' -Value $pause_start
Set-itemproperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseQualityUpdatesEndTime' -Value $pause
Set-itemproperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'
-Name 'PauseUpdatesStartTime' -Value $pause_start
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU'
-Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\
WindowsUpdate\AU' -Name 'NoAutoUpdate' -PropertyType DWORD -Value 1
--
Tags:
Windows
All Comments
By Queena
at 2022-01-29T02:00
at 2022-01-29T02:00
By Donna
at 2022-01-25T06:15
at 2022-01-25T06:15
By Joe
at 2022-01-30T04:18
at 2022-01-30T04:18
By Quanna
at 2022-01-25T06:15
at 2022-01-25T06:15
By Belly
at 2022-01-30T04:18
at 2022-01-30T04:18
By Oliver
at 2022-01-25T06:15
at 2022-01-25T06:15
By Irma
at 2022-01-30T04:18
at 2022-01-30T04:18
By Blanche
at 2022-01-25T06:15
at 2022-01-25T06:15
Related Posts
請問可以停止強制版本更新嗎?
By Megan
at 2022-01-23T18:15
at 2022-01-23T18:15
Win+Shift+S 成功後沒圖片
By Mason
at 2022-01-22T21:21
at 2022-01-22T21:21
更新20H2後系統字體模糊
By James
at 2022-01-22T19:09
at 2022-01-22T19:09
AirPods3 連接 window7
By Oliver
at 2022-01-22T18:33
at 2022-01-22T18:33
KB3017810無法更新,如何讓Update忽略它
By Todd Johnson
at 2022-01-20T22:25
at 2022-01-20T22:25