Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Add-AdfsAttributeStore

Brian Lich|Last Updated: 3/8/2017

SYNOPSIS

Adds an attribute store to the Federation Service.

SYNTAX

Predefined

Add-AdfsAttributeStore -Name <String> -StoreType <String> -Configuration <Hashtable> [-PassThru] [-WhatIf]
 [-Confirm] [<CommonParameters>]

Custom

Add-AdfsAttributeStore -Name <String> -TypeQualifiedName <String> -Configuration <Hashtable> [-PassThru]
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Add-AdfsAttributeStore cmdlet adds an attribute store to the Federation Service.

EXAMPLES

Example 1: Add a SQL type attribute store

PS C:\> Add-AdfsAttributeStore -Name "LocalSqlStore" -StoreType "SQL" -Configuration @{"name" = "SQL Attribute Store"; "Connection" = "Server=CONTOSOSRV01;Database=UserAttributes;Integrated Security=True;Async=True"}

This command adds a SQL-based attribute store named LocalSqlStore.

Example 2: Add a custom attribute store

PS C:\> Add-AdfsAttributeStore -Name "MyCustomStore" -TypeQualifiedName "Contoso.CustomTypes.MyAttributeStore, Contoso.CustomTypes" -Configuration @{"Name" = "Custom Attribute Store"; "Connection" = "Default"}

This command adds a custom attribute store named MyCustomStore.

PARAMETERS

-Configuration

Specifies the initialization parameters of the attribute store, such as a connection string.

Type: Hashtable
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Name

Specifies the friendly name of this attribute store.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StoreType

Specifies the type of attribute store to add. The acceptable values for this parameter are:

  • ActiveDirectory
  • LDAP
  • SQL
Type: String
Parameter Sets: Predefined
Aliases: 
Accepted values: ActiveDirectory, LDAP, SQL

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TypeQualifiedName

Specifies the class reference for a custom attribute store that is implemented in a .NET assembly.

Type: String
Parameter Sets: Custom
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

None

NOTES

  • An Active Directory Federation Services (AD FS) 2.0 attribute store is a pluggable module that the policy process for AD FS 2.0 can query to retrieve claim values. You can use either an Active Directory database or a Microsoft SQL Server database as your attribute store, or you can implement your own custom attribute store.

Get-AdfsAttributeStore

Set-AdfsAttributeStore

Remove-AdfsAttributeStore

© 2017 Microsoft