Install-PswaWebApplication

Install-PswaWebApplication

Installs a Web Access web application in IIS.

Syntax

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

Detailed Description

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.

Parameters

-UseTestCertificate

Indicates 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.

Aliases

none

Required?

false

Position?

named

Default Value

true

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WebApplicationName<String>

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

Aliases

none

Required?

false

Position?

1

Default Value

pswa

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WebSiteName<String>

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

Aliases

none

Required?

false

Position?

named

Default Value

Default Web Site

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None

Examples

EXAMPLE 1: Install a web application with default values

This command 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: Install a web application with default values and a test certificate

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

PS C:\> Install-PswaWebApplication -UseTestCertificate

Add-PswaAuthorizationRule

Get-PswaAuthorizationRule

Remove-PswaAuthorizationRule

Test-PswaAuthorizationRule