Skip to content

Latest commit

 

History

History
121 lines (82 loc) · 2.66 KB

File metadata and controls

121 lines (82 loc) · 2.66 KB
description external help file Module Name ms.date online version schema title
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
Microsoft.UpdateServices.Commands.dll-Help.xml
UpdateServices
12/20/2016
2.0.0
Get-WsusServer

Get-WsusServer

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

RELATED LINKS