New-WebApplication
New-WebApplication
Creates an IIS web application.
Sintaxis
Parameter Set: Default
New-WebApplication [-Name] <String> [-ApplicationPool <String> ] [-Force] [-PhysicalPath <String> ] [-Site <String> ] [ <CommonParameters>]
Descripción detallada
The New-WebApplication cmdlet creates an Internet Information Services (IIS) web application.
Parámetros
-ApplicationPool<String>
Specifies the name of the application pool in which the new web application runs.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Force
Forces the creation of the application without prompting for user confirmation.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Name<String>
Specifies the name of the web application to create.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-PhysicalPath<String>
Specifies the physical path to the web application files.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Site<String>
Specifies the name of the site on which this cmdlet creates an application.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿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.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Ejemplos
Example -------------- EXAMPLE Example 1: Creating Create a new web application --------------Create
This command creates a web application named TestApp on the default website. The application files are stored in the C:\Test folder, and the application runs in the DefaultAppPool application pool.
IIS:\>New-WebApplication -Name "TestApp" -Site 'Default Web Site' -PhysicalPath "C:\Test" -ApplicationPool "DefaultAppPool"