Heres the script:
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") | Out-Null
$wsus =
[Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer("ServerName","false");
$wsus.GetSubscription().StartSynchronization();
Heres the output:
Exception calling "GetUpdateServer" with "2" argument(s): "Unable to connect
to the remote server"
At g:\Source\Scripts\Development\WSUS\StartSync.ps1:11 char:78
+ $wsus =
[Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer( <<<<
"scocdc01p","false");
You cannot call a method on a null-valued expression.
At g:\Source\Scripts\Development\WSUS\StartSync.ps1:12 char:22
+ $wsus.GetSubscription( <<<< ).StartSynchronization();
Just to confuse things more we are using the alternate port (8530) because
the default port is already in use.
Any help would be great.