Enable-WebGlobalModule
Enable-WebGlobalModule
Enables an IIS module.
Sintaxis
Parameter Set: InputProperties
Enable-WebGlobalModule [-Name] <String> [[-PSPath] <String[]> ] [-Force] [-Location <String[]> ] [-Precondition <String> ] [-Type <String> ] [ <CommonParameters>]
Parameter Set: InputObject
Enable-WebGlobalModule [[-PSPath] <String[]> ] -InputObject <PSObject> [-Force] [-Location <String[]> ] [ <CommonParameters>]
Descripción detallada
The Enable-WebGlobalModule cmdlet enables the specified Internet Information Services (IIS) module.
Parámetros
-Force
Forces the module to be enabled.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<PSObject>
Specifies an input object that contains the module information.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue) |
¿Aceptar caracteres comodín? |
false |
-Location<String[]>
Specifies the location in which this cmdlet enables the module.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Name<String>
Specifies the name of the module to enable.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-PSPath<String[]>
Specifies the configuration path. This path can be either an IIS configuration path in the format computer name/webroot/apphost, or the IIS module path in the format IIS:\sites\Default Web Site.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Precondition<String>
Specifies a precondition for the module.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Type<String>
Specifies the managed type of the module.
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 1: Enable a module for a site
This command enables the module named UriCacheModule for the default website.
IIS:\>Enable-WebGlobalModule -Name "UriCacheModule" -PSPath 'IIS:\sites\Default Web Site'