
執行 Windows 7 家用版的客戶必須已保留或同意 Windows 10 升級,因為我每天都會看到升級無法安裝的訊息。
該客戶尚未準備好安裝 Windows 10,因此安裝失敗是件好事。但如何讓它停止嘗試呢?授予升級權限後,如何撤銷該權限以使其停止嘗試升級?
我運行了 Windows 更新疑難排解來清除更新,並且卸載並隱藏了 KB3035583,但它仍在嘗試升級。在工作管理員中,沒有GWX.EXE進程。
事件日誌失敗訊息:
Log Name: System
Source: Microsoft-Windows-WindowsUpdateClient
Date: 8/5/2015 1:28:58 AM
Event ID: 20
Task Category: Windows Update Agent
Level: Error
Keywords: Failure,Installation
User: SYSTEM
Description: Installation Failure: Windows failed to install the following update with
error 0x80240020: Upgrade to Windows 10 Home.
WindowsUpdate.log 中的相關行:
2015-08-05 01:28:57:885 1068 6698 Agent *************
2015-08-05 01:28:57:885 1068 6698 Agent ** START ** Agent: Installing updates [CallerId = AutomaticUpdates]
2015-08-05 01:28:57:885 1068 6698 Agent *********
2015-08-05 01:28:57:885 1068 6698 Agent * Updates to install = 1
2015-08-05 01:28:57:885 1068 6698 Agent * Title = Upgrade to Windows 10 Home
2015-08-05 01:28:57:885 1068 6698 Agent * UpdateId = {27E79986-1150-4342-BDD2-76DF82C768D5}.201
2015-08-05 01:28:57:885 1068 6698 Agent * Bundles 1 updates:
2015-08-05 01:28:57:885 1068 6698 Agent * {FCD6621E-F5D4-4A95-AD43-28F0C58DD2F3}.201
2015-08-05 01:28:58:181 1068 6698 DnldMgr Preparing update for install, updateId = {FCD6621E-F5D4-4A95-AD43-28F0C58DD2F3}.201.
2015-08-05 01:28:58:181 27280 6f84 Misc =========== Logging initialized (build: 7.6.7601.18917, tz: -0700) ===========
2015-08-05 01:28:58:181 27280 6f84 Misc = Process: C:\Windows\system32\wuauclt.exe
2015-08-05 01:28:58:181 27280 6f84 Misc = Module: C:\Windows\system32\wuaueng.dll
2015-08-05 01:28:58:181 27280 6f84 Handler :::::::::::::
2015-08-05 01:28:58:181 27280 6f84 Handler :: START :: Handler: Windows Setup Install
2015-08-05 01:28:58:181 27280 6f84 Handler :::::::::
2015-08-05 01:28:58:181 27280 6f84 Handler : Updates to install = 1
2015-08-05 01:28:58:181 1068 5ecc AU >>## RESUMED ## AU: Installing update [UpdateId = {27E79986-1150-4342-BDD2-76DF82C768D5}]
2015-08-05 01:28:58:181 1068 5ecc AU # WARNING: Install failed, error = 0x80240020 / 0x00000000
2015-08-05 01:28:58:181 27280 6f84 Handler : WARNING: Exit code = 0x80240020
2015-08-05 01:28:58:181 1068 5ecc AU Write OSUpgradeState =14 with OSUpgradephase =2
2015-08-05 01:28:58:181 27280 6f84 Handler :::::::::
2015-08-05 01:28:58:181 27280 6f84 Handler :: END :: Handler: Windows Setup Install
2015-08-05 01:28:58:181 27280 6f84 Handler :::::::::::::
答案1
進一步的谷歌搜尋讓我找到了一個註冊表項,看起來它控制著升級過程。
嘗試升級的機器具有以下值:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade]
"KickoffDownload"=dword:00000001
"KickoffSource"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade\State]
"OSUpgradeState"=dword:0000000e
"OSUpgradeStateTimeStamp"="2015-08-04 15:59:55"
"OSUpgradePhase"=dword:00000002
另一台 Windows 7 機器,我已刪除了 KB3035583前Windows 10 已發布(因此成功阻止了升級),具有以下值:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade\State]
"OSUpgradeState"=dword:00000001
"OSUpgradeStateTimeStamp"="2015-07-28 10:09:55"
我更新了“升級”計算機上的註冊表以匹配“被阻止”計算機的註冊表,然後重新啟動計算機。
另外,感謝@Ramhound的評論,我發現了一個包含5.1GB內容的$Windows.~BT隱藏資料夾。我運行了磁碟清理並刪除了“臨時 Windows 安裝檔”。該資料夾現在已經消失了。
我們將看看這是否成功阻止了未來的升級。
2015 年 8 月 7 日更新
電腦已停止嘗試升級到 Windows 10,因此註冊表更改一定有效。我前兩天設定的值沒有改變。
答案2
現在這很容易從來沒有 10,一個阻止 Windows 10 升級的便攜式實用程式。