Start a Windows Server Update Services (WSUS) 3.0 server synchronization. This script was contributed by the Microsoft WSUS team.

This script connects to a WSUS 3.0 server on the machine where the script runs. This script can be adapted to connect to remote WSUS 3.0 servers by changing the GetUpdateServer() call to GetUpdateServer(<servername>, true|false), where <servername> is the name of the remote WSUS server, and true|false refers to the use of SSL to make the connection.

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