Set-WebApplicationProxyApplication
Set-WebApplicationProxyApplication
Modifies settings of a web application published through Web アプリケーション プロキシ.
構文
Parameter Set: Add0
Set-WebApplicationProxyApplication [-DisableHttpOnlyCookieProtection] [ <CommonParameters>]
Parameter Set: ID
Set-WebApplicationProxyApplication [-ID] <Guid> [-AsJob] [-BackendServerAuthenticationSPN <String> ] [-BackendServerCertificateValidation <String> ] [-BackendServerUrl <Uri> ] [-CimSession <CimSession[]> ] [-ClientCertificateAuthenticationBindingMode <String> ] [-ClientCertificatePreauthenticationThumbprint <String> ] [-DisableTranslateUrlInRequestHeaders] [-DisableTranslateUrlInResponseHeaders] [-ExternalCertificateThumbprint <String> ] [-ExternalUrl <Uri> ] [-InactiveTransactionsTimeoutSec <UInt32> ] [-Name <String> ] [-ThrottleLimit <Int32> ] [-UseOAuthAuthentication] [ <CommonParameters>]
詳細説明
The Set-WebApplicationProxyApplication cmdlet modifies settings of a web application published through Web アプリケーション プロキシ. Specify the web application to modify by using its ID. Note that the method of pre-authentication cannot be changed. The cmdlet ensures that no other applications are already configured to use any specified ExternalURL or BackendServerURL.
パラメーター
-AsJob
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-BackendServerAuthenticationSPN<String>
Specifies the SPN of the backend server. Use this parameter if the application that the backend server hosts uses Integrated Windows authentication.
エイリアス |
SPN |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-BackendServerCertificateValidation<String>
Specifies whether Web アプリケーション プロキシ validates the certificate that the backend server presents. このパラメーターに対して使用できる値:
-- None
-- ValidateCertificate
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
None |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-BackendServerUrl<Uri>
Specifies the address of the web application. Specify the protocol and host name or IP address. Include the trailing slash (/). You can also include a port number and path. The following examples show the form of an address:
-- http://AccountingApp.Contoso.com/
-- http://Mail.Contoso.com/Remote/
-- http://Portal/
The cmdlet checks that no other applications are already configured to use this URL.
エイリアス |
BackendUrl |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CimSession<CimSession[]>
リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。
エイリアス |
Session |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ClientCertificateAuthenticationBindingMode<String>
Specifies whether Web アプリケーション プロキシ verifies whether the certificate that authenticates the federation server authenticates future requests. このパラメーターに対して使用できる値:
-- None
-- ValidateCertificate
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
None |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ClientCertificatePreauthenticationThumbprint<String>
Specifies the certificate thumbprint, as a string, of the certificate that a client supplies for the preauthentication feature. The thumbprint is 40 hexadecimal characters. This parameter is only relevant when you specify the value of ClientCertificate for the ExternalPreauthentication parameter.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DisableHttpOnlyCookieProtection
Indicates whether to disable the use of the HttpOnly flag when Web アプリケーション プロキシ sets the access cookie. The access cookie provides single sign-on access to an application.
Important: by default, HttpOnly is enabled to help ensure network protection. If you disable HttpOnly flag protection, the browser may share this cookie with other components on the client device, such as ActiveX, Java Applets and JavaScript, so they can access this application without the need to perform additional preauthentication
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DisableTranslateUrlInRequestHeaders
Indicates that Web アプリケーション プロキシ does not translate HTTP host headers from public host headers to internal host headers when it forwards the request to the published application.
Specify this parameter if the application uses path-based information.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DisableTranslateUrlInResponseHeaders
Indicates that Web アプリケーション プロキシ does not translate internal host names to public host names in Content-Location, Location, and Set-Cookie response headers in redirect responses.
If the proxy does not translate host names in the Content-Location or Location response headers, subsequent client requests resolve incorrectly. If the proxy does not translate the host name in the Set-Cookie response header, the published web application might not use cookies properly.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ExternalCertificateThumbprint<String>
Specifies the certificate thumbprint, as a string, of the certificate to use for the address specified by the ExternalUrl parameter. The thumbprint is 40 hexadecimal characters.
The certificate must exist in the Local Computer or Local Personal certificate store. You can use a simple certificate, a subject alternative name (SAN) certificate, or a wildcard certificate.
エイリアス |
ExternalCert |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ExternalUrl<Uri>
Specifies the external address, as a URL, for the web application. Include the trailing slash (/).
The cmdlet checks that no other applications are already configured to use this URL.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ID<Guid>
Specifies the GUID of a web application. To obtain the GUID of a web application, use the Get-WebApplicationProxyApplication cmdlet.
エイリアス |
ApplicationID |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InactiveTransactionsTimeoutSec<UInt32>
Specifies the length of time, in seconds, until Web アプリケーション プロキシ closes incomplete HTTP transactions.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
300 |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies a friendly name for the published web application.
エイリアス |
FriendlyName |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ThrottleLimit<Int32>
このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0
を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。 Do not specify a value for this parameter greater than 1.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
1 |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UseOAuthAuthentication
Indicates that Web アプリケーション プロキシ provides the URL of the federation server that performs Open Authorization (OAuth) when users connect to the application by using a Windows Store app.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Change the extern URL for a web application
This command changes the external URL to https://sp.contoso.com/ for the web application that has the specified ID.
PS C:\> Set-WebApplicationProxyApplication -ID 874A4543-7983-77A3-1E6D-1163E7419AC1 -ExternalUrl https://SP.Contoso.com/
Example 2: Change the backend server URL and the external URL
This command modifies a web application that has the specified ID. The command changes the backend server to be https://Portal.Contoso.com/ and the external URL to be https://SP.Contoso.com/.
PS C:\> Set-WebApplicationProxyApplication -ID 874A4543-7983-77A3-1E6D-1163E7419AC1 -BackendServerUrl https://Portal.Contoso.com/ -ExternalUrl https://SP.Contoso.com/
Example 3: Change the name of a web application
This command changes the friendly name of an application that has the specified ID.
PS C:\> Set-WebApplicationProxyApplication -ID 874A4543-7983-77A3-1E6D-1163E7419AC1 -Name Test123
Example 4: Disable URL translation in headers
This command modifies the web application that has the specified ID. The command disables URL translation in both request and response headers.
PS C:\> Set-WebApplicationProxyApplication -ID 874A4543-7983-77A3-1E6D-1163E7419AC1 -DisableTranslateUrlInRequestHeaders -DisableTranslateUrlInResponseHeaders
Example 5: Change the certificate thumbprint for a web application
This command changes the external certificate thumbprint for the web application that has the specified ID.
PS C:\> Set-WebApplicationProxyApplication -ID 874A4543-7983-77A3-1E6D-1163E7419AC1 –ExternalCertificateThumbprint FFAFA2422D77BC784D1F48E08F6BDAE32CD109A2
Example 6: Change the timeout interval for web applications
This command changes the inactive transaction timeout for all web applications whose names begin with the string SharePoint.
PS C:\> Get-WebApplicationProxyApplication SharePoint* | Set-WebApplicationProxyApplication -InactiveTransactionsTimeoutSec 400
関連トピック
Add-WebApplicationProxyApplication
Get-WebApplicationProxyApplication
Remove-WebApplicationProxyApplication
Web Application Proxy Overview
Publishing Internal Applications using Web Application Proxy