locked
Synchronize WSUS update using command RRS feed

  • Question

  • Dear Sir,
    Does anyone know the command we can synchronize the Windows update in WSUS Server?
    I would change the update to weekly update for WSUS service in server but only an option for Daily in GUI.
    Any advice?

    Many thanks in advance
    Gary HAN
    Monday, March 1, 2010 6:50 AM

Answers

  • Dear Sir,
    Does anyone know the command we can synchronize the Windows update in WSUS Server?
    I would change the update to weekly update for WSUS service in server but only an option for Daily in GUI.
    Any advice?

    Many thanks in advance
    Gary HAN

    The command would be: Read the WSUS Deployment Guide, or maybe even start with the Step By Step Guide.

    I get the feeling from the nature of your question that you've downloaded and (somehow) installed the product (and maybe not even configured the environment correctly), and now you're fumbling around without a clue how to do anything.
    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2010)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Monday, March 1, 2010 2:49 PM

All replies

  • Dear Sir,
    Does anyone know the command we can synchronize the Windows update in WSUS Server?
    I would change the update to weekly update for WSUS service in server but only an option for Daily in GUI.
    Any advice?

    Many thanks in advance
    Gary HAN

    The command would be: Read the WSUS Deployment Guide, or maybe even start with the Step By Step Guide.

    I get the feeling from the nature of your question that you've downloaded and (somehow) installed the product (and maybe not even configured the environment correctly), and now you're fumbling around without a clue how to do anything.
    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2010)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Monday, March 1, 2010 2:49 PM
  • Hi Lawrence,

    So sorry for the late reply (over 3 years)..

    Actually, I went through the the deplyment guide and I could setup the daily schedule (which is the only schedule option I could find)  to do the downloading on WSUS.

    However, I didn't find a way to schedule it by weekly. It is the reason why I would know the command and prepare a batch and run it by weekly by schedule.

    It is highly appreciated if you can share me the command or the way to setup the schedule for WSUS downloading by weekly.

    Gary Han

    Thursday, July 18, 2013 3:43 AM
  • Actually, I went through the the deplyment guide and I could setup the daily schedule (which is the only schedule option I could find) to do the downloading on WSUS.

    However, I didn't find a way to schedule it by weekly.

    There is no way to configure a weekly synchronization using the native WSUS environment. Maximum scheduled synchronization period is once per day.

    You could put the server in Manual sync mode and use the Windows Task Scheduler and invoke a synchronization via the WSUS API.

    Also, there is a facility in SolarWinds Patch Manager to schedule WSUS synchronizations, and those can be scheduled with higher levels of granularity and complexity. Personally, though, I think that a daily synchronization is the best option. A sync only takes about 3-5 minutes to complete, and there's really no reason not to sync daily.


    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2013)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

    Thursday, July 18, 2013 4:28 PM
  • Not helpful.  MS only updates once per week and scheduling synchronizations daily is overkill.  If there is an emergency patch available, it makes national news and we can run an extra sync manually.  I installed WSUS to reduce our WAN traffic, not increase it.
    Thursday, August 28, 2014 4:30 PM
  • Not helpful.  MS only updates once per week and scheduling synchronizations daily is overkill.  If there is an emergency patch available, it makes national news and we can run an extra sync manually.  I installed WSUS to reduce our WAN traffic, not increase it.

    Not true.

    First, "once per week" has never been a publication frequency. In fact, operating system updates are released twice a month (so maybe you only really need to do a monthly sync?)

    However, Definition updates for Defender, Microsoft Security Essentials, and System Center Endpoint Protection are published several times per day and MANY (nay MOST) organizations use automatic deployment of those Definition Updates via WSUS, so not only is daily sync a critical requirement, in fact, multiple syncs per day is a critical requirement.

    But hey.. if you want to take time out of your day to run over to the console and launch a sync event because another zero-day hit the streets, and you just happened to hear about it the day it happened, by all means go for it.

    But your argument is specious, at best anyway, because you cannot do scheduled weekly syncs, so needing to do a sync on-demand for a zero day is really an academic question.

    But if you want to do a manual weekly sync, so you can do manual on-demand zero-day syncs, then by all means set it to manual, and do a sync whenever you want. Not quite sure why you think a daily sync is overkill. As for your last sentence, you're making the wrong comparisons in your attempt to claim increased traffic. (Are you aware that without WSUS, *every* Windows system in your network does a *daily* sync with Windows Update? How's that affect your WAN traffic?)


    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

    Friday, August 29, 2014 12:17 AM
  • I am sure that you know Microsoft's schedule better than many people.

    As for AV updates, we use another vendor.

    I am using WSUS and manually sync once per week, all of my pc's get their updates from WSUS, not via the Internet.  Most of the PC's have no human operator and run applications that do not allow Internet browsing.

    By "not helpful", I was referring to your attitude in your first reply, which did not answer the question.  Later, your reply mentions the use of the API, but does not even supply a link to instructions for its use.

    Saturday, August 30, 2014 9:26 PM
  • I am using WSUS and manually sync once per week

    Good for you. I'm glad this procedure works for you.

    By "not helpful", I was referring to your attitude in your first reply, which did not answer the question.

    Actually I directly answered the question! The question was about performing weekly automated synchronizations, and I pointed out that it was not possible to do that. What other answer did you expect?

    Later, your reply mentions the use of the API, but does not even supply a link to instructions for its use.

    Yeah... point taken.

    Here's my perspective on this: If you're so inclined to use an *API* to achieve such an objective, you probably have the wherewithal to find the API in the MSDN Library. If you don't know how to find the API in the MSDN Library, then you probably don't have the skillset to use it.

    I'm not one to spoon-feed solutions. My presumption is that we're all IT Professionals in this forum, and therefore, I expect those who are posting have a minimal skill set required to *be* an IT Professional.

    Nonetheless, had there been an inquiry as to where to find the API, I would have happily offered the URL.


    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

    Sunday, August 31, 2014 1:09 AM
  • Here is a Powershell script from the Microsoft WSUS team in 2009 which offers on-demand sync...it can be run weekly via the Windows Task Scheduler.

    https://gallery.technet.microsoft.com/scriptcenter/723423ca-00ea-43b5-ba8b-2aae66c58518

    [reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") | out-null 
    $wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer(); 
    $wsus.GetSubscription().StartSynchronization();






    • Edited by Jeremy Robb Thursday, December 10, 2015 7:51 PM
    • Proposed as answer by Jeremy Robb Thursday, December 10, 2015 7:51 PM
    Thursday, December 10, 2015 7:49 PM
  • Reading this as I am having the same need, I don't want to sync daily, I want weekly. The original request is completely valid here and all Lawrence does is be a complete ass. You should be ashamed of yourself even today 6 years later for your "responses" in this thread ...  Lawrence Garvin is an ASS.

    Thanks to Jeremy for being helpful (although I haven't tried it yet!) but I felt compelled to comment to Lawrence and call him an ASS.

    Friday, October 7, 2016 7:10 PM
  • What Jeremy Robb linked to works but there's even a simpler way to do it with one line:

    (Get-WsusServer).GetSubscription().StartSynchronization()

    Source: https://dscottraynsford.wordpress.com/2015/07/22/force-wsus-to-synchronize-now-from-powershell/

    Oh, and I would like to 2nd the comment about Lawrence Gavin being an ass.

    • Edited by Sina Motamedi Friday, January 6, 2017 4:17 PM
    • Proposed as answer by Victor MCSE Tuesday, April 10, 2018 6:17 AM
    Friday, January 6, 2017 4:15 PM
  • What Jeremy Robb linked to works but there's even a simpler way to do it with one line:

    (Get-WsusServer).GetSubscription().StartSynchronization()



    Thanks, this was just what I was looking for!
    Wednesday, February 20, 2019 10:22 AM
  • I was also wondering if there was a way to maybe do weekly.  But now you can create any schedule you want.  Thanks to the two people who actually gave out an answer vs the useless answers that came from Lawrence Garvin.  

    I gotta say WOW to all of Lawrence Garvin's responses.  They were all completely useless.  Why not just have a one word response such as "GOOGLE".   Then you can take credit for all questions that you answer on this forum.  You know sometimes people just like to get a quick answer from someone who may have had this same issue, withing having to sift though hundreds of pages in a manual, you goof.  Sounds like you should find a new hobby.



    • Edited by Kman2020 Monday, May 11, 2020 6:58 PM
    Monday, May 11, 2020 6:57 PM