Add-AdfsAttributeStore
Add-AdfsAttributeStore
Adds an attribute store to the Federation Service.
構文
Parameter Set: Custom
Add-AdfsAttributeStore -Configuration <Hashtable> -Name <String> -TypeQualifiedName <String> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: Predefined
Add-AdfsAttributeStore -Configuration <Hashtable> -Name <String> -StoreType <String> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Add-AdfsAttributeStore cmdlet adds an attribute store to the Federation Service.
パラメーター
-Configuration<Hashtable>
Specifies the initialization parameters of the attribute store, such as a connection string.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the friendly name of this attribute store.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PassThru
作業中の項目を表すオブジェクトを返します。既定では、このコマンドレットによる出力はありません。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StoreType<String>
Specifies the type of attribute store to add. このパラメーターに対して使用できる値:ActiveDirectory, LDAP, and SQL.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-TypeQualifiedName<String>
Specifies the class reference for a custom attribute store that is implemented in a .NET Assembly.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- None
注
- An Active Directory フェデレーション サービス (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.
例
Example 1: Add a SQL type attribute store
This command adds a SQL-based attribute store named LocalSqlStore.
PS C:\> Add-AdfsAttributeStore -Name 'LocalSqlStore' -StoreType 'SQL' -Configuration @{"name" = "SQL Attribute Store"; "Connection" = "Server=CONTOSOSRV01;Database=UserAttributes;Integrated Security=True;Async=True"}
Example 2: Add a custom attribute store
This command adds a custom attribute store named MyCustomStore.
PS C:\> Add-AdfsAttributeStore -Name 'MyCustomStore' -TypeQualifiedName 'Contoso.CustomTypes.MyAttributeStore, Contoso.CustomTypes' -Configuration @{"Name" = "Custom Attribute Store"; "Connection" = "Default"}