< Back
Set-WsusServerSynchronization
Post
NAME Set-WsusServerSynchronization
SYNOPSIS
Sets whether the WSUS server synchronizes from Microsoft Update or an upstream server.
SYNTAX
Set-WsusServerSynchronization [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
<System.String>] [-UpdateServer <IUpdateServer>] -SyncFromMU [-Confirm] [-WhatIf] [<CommonParameters>]
Set-WsusServerSynchronization [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
<System.String>] [-PortNumber <Int32>] [-Replica] [-UpdateServer <IUpdateServer>] [-UseSsl] -UssServerName <String> [-Confirm] [-WhatIf]
[<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).
PARAMETERS
-InformationAction [<System.Management.Automation.ActionPreference>]
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationVariable [<System.String>]
Specifies an information variable.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-PortNumber [<Int32>]
Specifies the port number to use to communicate with the upstream WSUS server.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Replica [<SwitchParameter>]
Specifies whether the WSUS server is a replica server.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-SyncFromMU <SwitchParameter>
Specifies that the WSUS server synchronizes updates from Microsoft Update.
Required? true
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-UpdateServer [<IUpdateServer>]
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.
Required? false
Position? named
Default value none
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-UseSsl [<SwitchParameter>]
Specifies that the WSUS server should use SSL via HTTPS to communicate with an upstream server.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-UssServerName <String>
Specifies the name of a local server from which to synchronize updates.
Required? true
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
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, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Microsoft.UpdateServices.Commands.IUpdateServer
OUTPUTS
None
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/p/?linkid=287835
Get-WsusServer
SYNOPSIS
Sets whether the WSUS server synchronizes from Microsoft Update or an upstream server.
SYNTAX
Set-WsusServerSynchronization [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
<System.String>] [-UpdateServer <IUpdateServer>] -SyncFromMU [-Confirm] [-WhatIf] [<CommonParameters>]
Set-WsusServerSynchronization [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
<System.String>] [-PortNumber <Int32>] [-Replica] [-UpdateServer <IUpdateServer>] [-UseSsl] -UssServerName <String> [-Confirm] [-WhatIf]
[<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).
PARAMETERS
-InformationAction [<System.Management.Automation.ActionPreference>]
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationVariable [<System.String>]
Specifies an information variable.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-PortNumber [<Int32>]
Specifies the port number to use to communicate with the upstream WSUS server.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Replica [<SwitchParameter>]
Specifies whether the WSUS server is a replica server.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-SyncFromMU <SwitchParameter>
Specifies that the WSUS server synchronizes updates from Microsoft Update.
Required? true
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-UpdateServer [<IUpdateServer>]
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.
Required? false
Position? named
Default value none
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-UseSsl [<SwitchParameter>]
Specifies that the WSUS server should use SSL via HTTPS to communicate with an upstream server.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-UssServerName <String>
Specifies the name of a local server from which to synchronize updates.
Required? true
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
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, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Microsoft.UpdateServices.Commands.IUpdateServer
OUTPUTS
None
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/p/?linkid=287835
Get-WsusServer