Synchronize WSUS with Powershell

Yesterday, I showed you how to script the WSUS Cleanup Wizard with Powershell. Today, the WSUS fun continues! Here’s how to use powershell to “manually” synchronize your WSUS server, i.e. download the latest updates.

#Region VARIABLES

# WSUS Connection Parameters:
[String]$updateServer = "myWSUSServer.domain.local"
[Boolean]$useSecureConnection = $False
[Int32]$portNumber = 80

#EndRegion VARIABLES

#Region SCRIPT

# Load .NET assembly
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")

# Connect to WSUS Server
$Wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer,$useSecureConnection,$portNumber)

# Perform Synchronization
$Subscription = $Wsus.GetSubscription()
$Subscription.StartSynchronization()

#EndRegion SCRIPT

Download the script here: Synchronize-Wsus (rename to .ps1)

Enjoy!
Hugo

jets trade robertson to broncosThe second touchdown came on a 10 yard scramble after Rodgers couldn’t find an open receiver.. That demon lady looks like chorizo wearing a wig. Tests conducted by the BOFS found that wild dandelions also contain about twice as much fiber and iron, and more calcium, than their domesticated counterparts.. After 11 seasons of hope for the Eagles faithful, McNabb is still is unable to win big games. Leo’s father George was a comic book designer and firmly part of the counter culture movement of the 1960s.. Good AJ Tucker here, and I just supplied you with a listing of boot camp exercises. Additional key features include new and returning power ups, special power up abilities when teamed with Yoshi and the new drill mechanic that allows Mario burrow into and through planets.. “I didn’t put any stock into where everybody thought I might go,” Manziel said. Okay. So we’ve got that. The Tampa Bay Buccaneers will have the No 1 pick on Thursday after finishing last season with just two nfl jerseys cheap wins and 14 losses. This last 10,000 years (see vertical red line drawn on the population chart above), called the Holocene Epoch, has NBA Jerseys Cheap been one of interglaciation where temperatures, compared to the prior 410,000 years, http://www.cheapraybans2013.com have been remarkably stable. The second, I would say, is the critical renewal of diplomacy.. I didn’t hit puberty puberty hit me. At 45 days post injury, the time to reach the platform by both the rmCHI group and sham group are not significantly different (Fig. Boxes arrive with glass vials of urine samples from around the world. The jackets are a symbol of the club’s elitism, and of its mystique. New Vikings Coach Mike Zimmer passes on a quarterback and instead gets someone who leaves quarterbacks quaking in their cleats. In a 2010 study printed in the of Cardiology, heart rate recovery and heart function was improved in obese patients after sticking to a weight loss program for three months. Brian Banks becomes emotional as his attorney Justin Brooks, right, and attorney Alissa Bjerkhoel stand by, as Banks’ rape conviction is dismissed, May 24, 2012, in Long Beach, Calif. At the last second Page moves out of the way, leading to man and steel colliding as Goldberg’s arm cheap football jerseys rams into the steel post. www.cheap-raybans-sunglasses.com Probably Monsieur Revel s legal acumen convinced him, louis vuitton belts for cheap at the outset, Cheap Jerseys that the story of the poisoned dinner was nike zoom lebron too weak to be relied on.. 5, 201649ers QB Colin Kaepernick is entering his sixth NFL Cheap ray bans season.(Photo: Christopher Hanewinckel, USA TODAY Sports)Just a little more than a week ago, some people were burning Colin Kaepernickjerseys.

5 thoughts on “Synchronize WSUS with Powershell”

  1. Hi,

    I am seeking a way to sync computer in WSUS with AD OUs but no luck, do you think to make one script for that?…I’d love too but it seem out of my capability.

    TIA.

  2. Hi Chairuou,
    I am not sure what you mean. If you configured GPO’s to assign computers to a specific WSUS group, the computers should automatically appear in the proper group in WSUS. You can force a computer to talk to WSUS by running: wuauclt /detectnow on the computer.
    Hugo

Leave a Reply