Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Install-PswaWebApplication

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Install-PswaWebApplication

Configures the Windows PowerShell®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

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.


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.

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

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

Related topics

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.