Add-AdfsFarmNode
Adds this computer to an existing federation server farm.
Syntax
Add-AdfsFarmNode
[-OverwriteConfiguration]
[-CertificateThumbprint <String>]
-GroupServiceAccountIdentifier <String>
[-Credential <PSCredential>]
-PrimaryComputerName <String>
[-PrimaryComputerPort <Int32>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AdfsFarmNode
[-OverwriteConfiguration]
[-CertificateThumbprint <String>]
-ServiceAccountCredential <PSCredential>
[-Credential <PSCredential>]
-PrimaryComputerName <String>
[-PrimaryComputerPort <Int32>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AdfsFarmNode
[-CertificateThumbprint <String>]
-ServiceAccountCredential <PSCredential>
[-Credential <PSCredential>]
-SQLConnectionString <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AdfsFarmNode
[-CertificateThumbprint <String>]
-GroupServiceAccountIdentifier <String>
[-Credential <PSCredential>]
-SQLConnectionString <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Add-AdfsFarmNode cmdlet adds this computer to an existing federation server farm.
Examples
Example 1
PS C:\> $fscredential = Get-Credential
PS C:\> Add-AdfsFarmNode -ServiceAccountCredential $fscredential -SQLConnectionString "Data Source=SQLHost;Integrated Security=True"
Description
Adds the local server computer as a node in an existing federation server farm that uses a Microsoft SQL Server database installed on a computer called "SQLHost".
Example 2
PS C:\> $fscredential = Get-Credential
PS C:\> Add-AdfsFarmNode -OverwriteConfiguration -PrimaryComputerName "PrimaryWIDHost" -PrimaryComputerPort 80 -ServiceAccountCredential $fscredential -CertificateThumbprint 8169c52b4ec6e77eb2ae17f028fe5da4e35c0bed
Description
Overwrites an existing AD FS configuration database and adds the local server computer as a node in an existing federation server farm that uses Windows Internal Database (WID) and whose primary node is installed on a computer called "PrimaryWIDHost".
Note that the PrimaryComputerPort is needed even if the default HTTP port of 80 is used and that the CertificateThumbprint parameter is only required if it is not already configured as a binding in IIS. Also when specifying a value for the CertificateThumbprint parameter, the value you use must specify the thumbprint of a certificate that is currently installed in the local machine My store, and the certificate must be the same certificate that is used as the SSL certificate on the primary node.
Parameters
-CertificateThumbprint
Specifies the value of the certificate thumbprint of the certificate that should be used in the SSL binding of the Default Web Site in IIS. This value should match the thumbprint of a valid certificate in the Local Computer certificate store.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Specifies a PSCredential object based on a user name and password.
To obtain a PSCredential object, use the Get-Credential cmdlet.
For more information, type Get-Help Get-Credential
.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GroupServiceAccountIdentifier
Specifies the Group Managed Service Account under which the Active Directory Federation Services (AD FS) service runs.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OverwriteConfiguration
This parameter must be used to remove an existing AD FS configuration database and overwrite it with a new database.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PrimaryComputerName
Specifies the name of the primary adfs2_fs in a adfs2_fs farm. The cmdlet adds the computer to the adfs2_fs farm that has the primary adfs2_fs that you specify.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PrimaryComputerPort
Specifies the primary computer port. The computer uses the HTTP port that you specify to connect with the primary computer in order to synchronize configuration settings. Specify a value of 80 for this parameter, or specify an alternate value if the HTTP port on the primary computer is not 80. If this parameter is not specified, a default port value of 443 is assumed.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ServiceAccountCredential
Specifies the Active Directory account under which the AD FS service runs. All nodes in the farm must use the same service account.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SQLConnectionString
Specifies the SQL Server database that will store the AD FS configuration settings. If not specified, AD FS uses Windows Internal Database to store configuration settings
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for