Set-AdfsSyncProperties
Set-AdfsSyncProperties
Modifies the frequency of synchronization for the AD FS configuration database and which server is primary in the farm.
Syntax
Parameter Set: Default
Set-AdfsSyncProperties [-PollDuration <Int32> ] [-PrimaryComputerName <String> ] [-PrimaryComputerPort <Int32> ] [-Role <String> ] [ <CommonParameters>]
Detailed 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 is the primary server in the farm.
Parameters
-PollDuration<Int32>
Specifies how often, in seconds, the AD FS configuration database synchronizes with the primary .
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PrimaryComputerName<String>
Specifies the name of the primary in a farm. Modify settings for the Federation Service on the primary .
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PrimaryComputerPort<Int32>
Specifies the primary computer port. The primary computer in the farm uses the TCP port that you specify. Modify settings for the Federation Service on the primary .
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Role<String>
Specifies the role for this . The acceptable values for this parameter are: primary and secondary.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
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.
Outputs
The output type is the type of the objects that the cmdlet emits.
- System.Object
Examples
Example 1: Modify the poll duration for a farm
This command modifies the database synchronization to 3600 seconds. The command makes the change to the primary .
PS C:\> Set-AdfsSyncProperties -PollDuration 3600 -PrimaryComputerName "FederationServerPrimary"