我使用 Windows 7 SP1 x64 Ultimate。我看到Control Panel\All Control Panel Items\Windows Update
:
我不想安裝任何 Windows 更新。如何防止 Windows 更新在重新啟動時安裝更新?
從那時起我就禁用了 Windows 更新:
我cmd.exe
已經執行了wusa /uninstall /kb:<kbnumber>
最近安裝的每個 Windows 更新。夠了嗎? (我還沒重開機)
輸出 為什麼重啟:
腳本如下(另存為.vbs
檔案):
'---------------------------------------------------------------------
'Name: CheckPendingFileRenameOperations
'Programmer: Tom Mills/Microsoft Corp.
'Date: 8/14/2008
'Purpose: Checks registry key for pending file rename operations
'Notes: None
'---------------------------------------------------------------------
CONST HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
strFileOps = ""
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Control\Session Manager"
strValueName = "PendingFileRenameOperations"
Return = objReg.GetMultiStringValue(HKEY_LOCAL_MACHINE,strKeyPath,_
strValueName,arrValues)
If (Return = 0) And (Err.Number = 0) Then
For Each strValue In arrValues
strFileOps = strFileOps & chr(13) & strValue
Next
WScript.Echo "Pending File Rename Operations Found: " & strFileOps
Else
If Err.Number = 0 Then
Wscript.Echo "No Pending File Operations Found"
Else
Wscript.Echo "Check Pending File Operations failed. Error = " & Err.Number
End If
End If