WSUS – Powershell – connect to WSUS server

Just a quick note on connecting to a WSUS server when running on a different port than 80 (i.e.8530):

[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$updateServer = "Server_name"
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer,$false,8530)

Leave a Reply

Your email address will not be published. Required fields are marked *

fifteen + five =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 comments

  1. Rapp says:

    Any ideas on how to connect when the server has been configured to use SSL? I would assume the command would change to the following

    [void][reflection.assembly]::LoadWithPartialName(“Microsoft.UpdateServices.Administration”)
    $updateServer = “Server_name”
    $wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer,$True,8531)