Set-AdfsRelyingPartyWebContent
Set-AdfsRelyingPartyWebContent
Sets properties for the relying party web content objects.
構文
Parameter Set: IdentifierName
Set-AdfsRelyingPartyWebContent [[-Locale] <CultureInfo> ] -Name <String> [-ErrorPageAuthorizationErrorMessage <String> ] [-ErrorPageDeviceAuthenticationErrorMessage <String> ] [-ErrorPageGenericErrorMessage <String> ] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: IdentifierObject
Set-AdfsRelyingPartyWebContent [-TargetWebContent] <AdfsRelyingPartyWebContent> [-ErrorPageAuthorizationErrorMessage <String> ] [-ErrorPageDeviceAuthenticationErrorMessage <String> ] [-ErrorPageGenericErrorMessage <String> ] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-AdfsRelyingPartyWebContent cmdlet sets properties for a relying party web content object. These properties override equivalent values set by using the Set-AdfsGlobalWebContent cmdlet to obtain a web content object. Specify a relying party web content object by using a name and locale, or use the Get-AdfsRelyingPartyWebContent cmdlet. If you do not specify a locale, the cmdlet uses the invariant locale.
パラメーター
-ErrorPageAuthorizationErrorMessage<String>
Specifies an error message to display when a user encounters any authorization errors that occur for a token request. This string can be an HTML fragment.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ErrorPageDeviceAuthenticationErrorMessage<String>
Specifies an error message to display for any device authentication errors that occur for a token request. Device authentication errors occur when the user presents an expired user@device certificate to Active Directory フェデレーション サービス (AD FS), a certificate that is not found in Active Directory® ドメイン サービス, or a certificate that is disabled in Active Directory ドメイン サービス. This string can be an HTML fragment.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ErrorPageGenericErrorMessage<String>
Specifies an error message to display for any generic errors that occur for a token request. This string can be an HTML fragment.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Locale<CultureInfo>
Specifies a locale. The cmdlet sets relying party web content for the locale that you specify.
エイリアス |
なし |
必須? |
false |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies a name. The cmdlet modifies content for the relying party that you specify by name.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-PassThru
作業中の項目を表すオブジェクトを返します。既定では、このコマンドレットによる出力はありません。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-TargetWebContent<AdfsRelyingPartyWebContent>
Specifies a relying party web content object. The cmdlet modifies content for the object that you specify. To obtain a relying party web content object, use Get-AdfsRelyingPartyWebContent.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
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)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
System.IdentityServer.Management.Resources.AdfsRelyingPartyWebContent
This cmdlet generates a System.IdentityServer.Management.Resources.AdfsRelyingPartyWebContent object that represents web content of a relying party, or an array of such objects. The object includes the following properties:
Locale: System.Globalization.CultureInfo
Name: System.String
ErrorPageGenericErrorMessage: System.String
ErrorPageAuthorizationErrorMessage: System.String
ErrorPageDeviceAuthenticationErrorMessage: System.String
例
Example 1: Specify a generic error message
This command specifies a generic error message to display to users for the relying party named RelyingParty01.
PS C:\> Set-AdfsRelyingPartyWebContent -Name "RelyingParty01" -ErrorPageGenericErrorMessage "There is an error."
Example 2: Specify multiple error messages
This command assigns multiple error messages to display to users for the relying party named RelyingParty01 with the specified locale.
PS C:\> Set-AdfsRelyingPartyWebContent -Locale en-us -Name "RelyingParty02" -ErrorPageAuthorizationErrorMessage "There is an authorization error." -ErrorPageDeviceAuthenticationErrorMessage "There is a device authentication error." -ErrorPageGenericErrorMessage "There is an error."