Search This Blog

Sunday, September 04, 2011

How to use Windows Updates Commands

My challenge today was to run a windows updates on an outdated
Windows XP laptop; the easier option is to type 'Windows updates'
in Bing, a windows default search engine using Internet Explorer.
However the  result was inconclusive and random links to different
Microsoft Windows sites.
I found the whole experience shocking and time wasting.  I could have use any alternative search engines without any problem and still get a better outcome.

Hoping you enjoy using these windows commands in your day to day working life.


Using Wupdmgr Command works on all Windows Except "Windows 7" and above:
      •  wupdmgr.exe 
The windows command switch will bring  out the windows updates webpage and then you can then select either Express (Recommended) or Custom (Advanced) Installation. This is the easiest command option to remember.
      • wupdmgr.exe -z -q
This command switch would Auto downloads all critical updates and installs them.


Using update WUAUCLT Command Line on all Windows - XP/7/W2K/W2K3/W2K8:
        • net stop wuauserv 
        •  net start wuauserv
    To restart the update service on the client, which can be done manually by stopping and  restarting the service through the above command line.

    To force quick update from the windows server especially in an enterprise environment where you have your own Windows Server Updates Services (WSUS) setup use:

        • wuauclt /detectnow
    The detectnow switch will force a relatively immediate query to the WSUS server to see if there are any updates that are needed. If there are, the yellow shield will appear in the system tray. This is very quick within 20-30 seconds.

        • wuauclt /r/ReportNow
    The ReportNow switch will force the client to send updated status to the WSUS server. It may take a minute or two for the server to reconcile and display the updated status.

        •  %systemroot%\WindowsUpdate.log 
    The log file is just a text file  and viewable in Notepad. If the server you’re trying to connect to is faulty or group policy server then the trace will be in there.

        • wuauclt /scannow
    To force the system to check for any patches that may apply or a patch that won't be applicable until another software is installed:

     

No comments: