Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Get-WsusServer

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Get-WsusServer

Gets the Windows Server Update Services (WSUS) update server object.

Syntax

Parameter Set: ServerSpecified
Get-WsusServer [-Name] <String> -PortNumber <Int32> [-UseSsl] [ <CommonParameters>]




Detailed 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.

Parameters

-Name<String>

Specifies the name of a WSUS server.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-PortNumber<Int32>

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


Aliases

none

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.


Aliases

none

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

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

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.UpdateServices.Commands.IUpdateServer

    IUpdateServer


Examples

EXAMPLE 1

This example gets the IUpdateServer object for the local machine.


PS C:\> Get-WsusServer
Name : contoso

EXAMPLE 2

This example gets the IUpdateServer object for a remote machine.


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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.