Edit

Share via


Get-WsusServer

Gets the WSUS update server object.

Syntax

DefaultServer (Default)

Get-WsusServer
    [<CommonParameters>]

ServerSpecified

Get-WsusServer
    [-Name] <String>
    -PortNumber <Int32>
    [-UseSsl]
    [<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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ServerSpecified
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-PortNumber

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

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ServerSpecified
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UseSsl

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ServerSpecified
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

Microsoft.UpdateServices.Administration.IUpdateServer