Set-AdfsSyncProperties

Modifies the frequency of synchronization for the AD FS configuration database and which server is primary in the farm.

Syntax

Default (Default)

Set-AdfsSyncProperties
    [-PrimaryComputerName <String>]
    [-PrimaryComputerPort <Int32>]
    [-PollDuration <Int32>]
    [-Role <String>]
    [<CommonParameters>]

Description

The Set-ADFSSyncProperties cmdlet modifies the frequency of synchronization for the Active Directory Federation Services (AD FS) configuration database. The cmdlet also specifies which federation server is the primary server in the federation server farm.

Examples

Example 1: Modify the poll duration for a farm

PS C:\> Set-AdfsSyncProperties -PollDuration 3600 -PrimaryComputerName "FederationServerPrimary"

This command modifies the database synchronization to 3600 seconds. The command makes the change to the primary federation server.

Example 2: Change a server from secondary to primary

PS C:\> Set-AdfsSyncProperties -Role "PrimaryComputer"

This command changes an AD FS server in a WID farm from secondary to primary.

Example 3: Change a primary server to a secondary server

PS C:\> Set-AdfsSyncProperties -Role "SecondaryComputer" -PrimaryComputerName "<FQDN of primary server>"

This command changes a primary AD FS server in a WID farm to a secondary server. Note: The primary server must be accessible via HTTP on port 80 from the secondary server.

Parameters

-PollDuration

Specifies how often, in seconds, the AD FS configuration database synchronizes with the primary federation server.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PrimaryComputerName

Specifies the name of the primary federation server in a federation server farm. Modify settings for the Federation Service on the primary federation server.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PrimaryComputerPort

Specifies the primary computer port. The primary computer in the federation server farm uses the TCP port that you specify. Modify settings for the Federation Service on the primary federation server.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Role

Specifies the role for this federation server. The acceptable values for this parameter are: primary and secondary.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Object