Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-WsusServer

Last Updated: 3/8/2017

SYNOPSIS

Gets the WSUS update server object.

SYNTAX

DefaultServer (Default)

Get-WsusServer [<CommonParameters>]

ServerSpecified

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
Parameter Sets: ServerSpecified
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-PortNumber

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

Type: Int32
Parameter Sets: ServerSpecified
Aliases: 

Required: True
Position: Named
Default value: None
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
Parameter Sets: ServerSpecified
Aliases: 

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

CommonParameters

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

INPUTS

None

OUTPUTS

Microsoft.UpdateServices.Commands.IUpdateServer

NOTES

© 2017 Microsoft