Install-PswaWebApplication

Install-PswaWebApplication

Configures the Windows PowerShell®Web Access web application in IIS.

構文

Parameter Set: Default
Install-PswaWebApplication [[-WebApplicationName] <String> ] [-UseTestCertificate] [-WebSiteName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Install-PswaWebApplication cmdlet configures Windows PowerShell Web Access web application. This cmdlet installs the web application, associates it with a web site, and optionally creates a test SSL certificate using the useTestCertificate parameter. For security reasons web administrators should not use a test certificate for production environments.

パラメーター

-UseTestCertificate

Specifies that a test certificate is created. If this parameter is set to true, then this cmdlet creates a test certificate and configures the Windows PowerShell Web Access web application to use the certificate for HTTPS requests. If this parameter is set to false, then no certificate or binding is created. Set this value to false if another certificate is used for Windows PowerShell Web Access.

エイリアス

なし

必須?

false

位置は?

named

既定値

true

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WebApplicationName<String>

Specifies the name for your web application. This is displayed as the last part of the Windows PowerShell Web Access URL.

エイリアス

なし

必須?

false

位置は?

1

既定値

pswa

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WebSiteName<String>

Specifies the name of the Web Server (IIS) website on which to install this Windows PowerShell Web Access web application.

エイリアス

なし

必須?

false

位置は?

named

既定値

Default Web Site

パイプライン入力を許可する

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

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None

EXAMPLE 1

This example installs the PSWA web application using the default values for the WebApplicationName (pswa) and WebSiteName (Default Web Site) parameters .

PS C:\> Install-PswaWebApplication

EXAMPLE 2

This example installs the PSWA web application with a test certificate, and using the default values for the WebApplicationName and WebSiteName parameters.

PS C:\> Install-PswaWebApplication -UseTestCertificate

関連トピック

Add-PswaAuthorizationRule

Get-PswaAuthorizationRule

Remove-PswaAuthorizationRule

Test-PswaAuthorizationRule