Install-PswaWebApplication
Install-PswaWebApplication
Configures the Windows PowerShell®Web Access web application in IIS.
Sintaxis
Parameter Set: Default
Install-PswaWebApplication [[-WebApplicationName] <String> ] [-UseTestCertificate] [-WebSiteName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-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.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
true |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WebApplicationName<String>
Specifies the name for your web application. This is displayed as the last part of the Windows PowerShell Web Access URL.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
pswa |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WebSiteName<String>
Specifies the name of the Web Server (IIS) website on which to install this Windows PowerShell Web Access web application.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
Default Web Site |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- None
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- None
Ejemplos
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