Site icon TOSS

Set-AdfsSyncProperties

powershell

Set-AdfsSyncProperties is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.

Synopsis

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

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 adfs2_fs is the primary server in the adfs2_fs farm.

Parameters

-PollDuration
Specifies how often, in seconds, the AD FS configuration database synchronizes with the primary adfs2_fs.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-PrimaryComputerName <String>
    Specifies the name of the primary adfs2_fs in a adfs2_fs farm. Modify settings for the Federation Service on the primary adfs2_fs.

    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 adfs2_fs farm uses the TCP port that you specify. Modify settings for the Federation Service on the primary adfs2_fs.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Role <String>
    Specifies the role for this adfs2_fs. The acceptable values for this parameter are: primary and secondary.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

Syntax

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

———————-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 adfs.

———————-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 “”
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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Set-AdfsSyncProperties

You can also read about

To know more PowerShell cmdlets(Commands) on Active Directory Federation Services(ADFS) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version