Get-WsusServer

Gets the WSUS update server object.

Syntax

Get-WsusServer []
Get-WsusServer
   [-Name] <String>
   [-UseSsl]
   -PortNumber <Int32>
   [<CommonParameters>]

Description

The Get-WsusServer cmdlet gets the Windows Server Update Services (WSUS) update server object. This cmdlet requires the server name, port number and a flag that specifies if the server uses Secure Sockets Layer (SSL) as parameters.

Given a server name, port number, and flag specifying whether to use SSL, returns an IUpdateServer object.

Examples

Example 1: Get the local server

PS C:\> Get-WsusServer
Name : contoso

This command gets the IUpdateServer object for the local computer.

Example 2: Get a remote server

PS C:\> Get-WsusServer -Name "contoso" -PortNumber 8530
Name : contoso

This command gets the IUpdateServer object for a remote computer.

Parameters

-Name

Specifies the name of a WSUS server.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PortNumber

Specifies the port number to use to communicate with the upstream WSUS server.

Type:Int32
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-UseSsl

Specifies that the WSUS server should use Secure Sockets Layer (SSL) via HTTPS to communicate with an upstream server.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

Microsoft.UpdateServices.Administration.IUpdateServer