這是一個小腳本,可以解決用戶面臨的大多數問題,而Windows更新被卡住了。在大多數情況下,此類問題是由於更新所需的文件而發生的。這可以防止Windows更新更新。
關閉設置應用程序或Windows更新控制面板窗口。
右鍵單擊此處,然後單擊將鏈接另存為... ,然後將其另存為FixWindowsUpdate.ps1
。
打開命令提示符(CMD)窗口作為管理員,並運行以下命令:
# Assuming you saved the aforementioned file in the Downloads directory
cd % USERPROFILE % Downloads
# Now, run the fix script
PowerShell - ExecutionPolicy Unrestricted .FixWindowsUpdate.ps1
再次運行Windows更新。