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

Set-WsusServerSynchronization

Brian Lich|Last Updated: 3/8/2017
|
1 Contributor

SYNOPSIS

Sets whether the WSUS server synchronizes from Microsoft Update or an upstream server.

SYNTAX

SyncFromMU

Set-WsusServerSynchronization [-UpdateServer <IUpdateServer>] [-SyncFromMU] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Upstream

Set-WsusServerSynchronization [-UpdateServer <IUpdateServer>] -UssServerName <String> [-PortNumber <Int32>]
 [-UseSsl] [-Replica] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Set-WsusServerSynchronization cmdlet sets whether the Windows Server Update Services (WSUS) server synchronizes from Microsoft Update or an upstream server. This cmdlet allows you to specify settings such as the upstream server name, the port number, and whether or not to use Secure Sockets Layer (SSL).

EXAMPLES

Example 1: Synchonize from a specified server

PS C:\> Set-WsusServerSynchronization -UssServerName "Test" -PortNumber 42 -UseSSL

This command specifies that the local WSUS Server is to synchronize from another server named Test using port number 42 and the SSL protocol.

Example 2: Synchronize from Microsoft Update

PS C:\> Set-WsusServerSynchronization -SyncFromMU
The Update Server was successfully configured with the following parameters: Synchronize from Microsoft Update

This command specifies that the local WSUS Server is to synchronize from Microsoft Update.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-PortNumber

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

Type: Int32
Parameter Sets: Upstream
Aliases: 

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

-Replica

Specifies whether the WSUS server is a replica server.

Type: SwitchParameter
Parameter Sets: Upstream
Aliases: 

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

-SyncFromMU

Specifies that the WSUS server synchronizes updates from Microsoft Update.

Type: SwitchParameter
Parameter Sets: SyncFromMU
Aliases: 

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

-UpdateServer

Specifies the object that contains the WSUS server. This value is obtained by calling the Get-WsusServer cmdlet and passing the resulting IUpdateServer object into this cmdlet.

Type: IUpdateServer
Parameter Sets: (All)
Aliases: 

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

-UseSsl

Specifies that the WSUS server should use SSL via HTTPS to communicate with an upstream server.

Type: SwitchParameter
Parameter Sets: Upstream
Aliases: 

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

-UssServerName

Specifies the name of a local server from which to synchronize updates.

Type: String
Parameter Sets: Upstream
Aliases: 

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
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

Microsoft.UpdateServices.Commands.IUpdateServer

OUTPUTS

None

NOTES

Get-WsusServer

© 2017 Microsoft