Get-WsusServer
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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).
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
EXAMPLE 2
This example gets the IUpdateServer object for a remote machine.
PS C:\> Get-WsusServer -Name contoso -PortNumber 8530
Related topics
{{INSERT_A_VALID_LINK}}