Enable-WebGlobalModule

Enable-WebGlobalModule

Enables the specified IIS module.

Syntax

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>]

Detailed Description

Enables the specified IIS module.

Parameters

-Force

Forces the module to be enabled.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<PSObject>

Input object that contains the module information.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Location<String[]>

The location in which the module is enabled.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

The name of the module to enable.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-PSPath<String[]>

Specifies the configuration path. This can be either an IIS configuration path in the formatcomputer name/webroot/apphost, or the IIS module path in this format IIS:\sites\Default Web Site.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Precondition<String>

Specifies a precondition for the module.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Type<String>

Specifies the managed type of the module.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

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.

Outputs

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

Examples

-------------- EXAMPLE 1: Enable a module for a site --------------

Demonstrates how to enable the module named UriCacheModule for the Default Web Site.

IIS:\>Enable-WebGlobalModule -Name UriCacheModule -PSPath 'IIS:\sites\Default Web Site'

Disable-WebGlobuleModule