#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    80
    Rep Power
    12

    Windows Update command line


    Hello,

    I have a computer that is WSUS client.

    If I open the windows update app and click on "check for updates" on the left, I receive a message that there aren't any available updates. Log shows that it's checking the WSUS server.

    However, if I click on "Check online for updates from Microsoft Update", I'm notified that I do have updates available.

    What I'm trying to do is force the client to check for updates using the command line.

    wuauclt.exe /detectnow
    wuauclt.exe /update

    These two commands only check the WSUS server.

    Does anyone know how to force a wsus client to check online for updates using the command line?

    Thank you
  2. #2
  3. Providing fuel for space ships
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2004
    Location
    nr Edinburgh, Scotland
    Posts
    14,382
    Rep Power
    3848
    Have you checked to see if the updates are being downloaded to the WSUS server ? Your log files show it's checking the server, but the server may not have updates available to the client.
    The No Ma'am commandments:

    1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
    2.) It is wrong to be French
    3.) It is O.K. to put all bad people in a giant meat grinder
    4.) Lawyers, see rule 3
    5.) It is O.K. to drive a gas guzzler if it helps you get babes
    6.) Everyone should car pool but me
    7.) Bring back the word 'stewardesses'
    8.) Synchronized swimming is not a sport
    9.) Mud wrestling is a sport
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    1
    Rep Power
    0

    checking online windows updates via command line


    hello dfr574,

    you could use wuinstall, it is a command line tool for managing windows updates.

    it has serveral more options than wuauclt.exe. for example you bypass a configured wsus server.

    the command
    Code:
    wuinstall.exe /search /bypass_wsus
    would temporarly bypass the wsus server and search online for available windows updates.

    it temporarly changes the registry entry for the wsus server and after execution sets again the original value.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0
    You can try using UDC (Updates Deployment Commander). It is a command line tool to install and create reports of updates. It comes with a feature to download directly from internet and ignore WSUS.
    It enables you to target specific updates (or all), install them, audit patching status and output to CSV, reboot, etc. It is network path aware so you can dump reports to a central network share. It comes with a tool to merge multiple reports to a single one.
    sysadminsoftware.com/udc.html

IMN logo majestic logo threadwatch logo seochat tools logo