Export (0) Print
Expand All
Expand Minimize

Enable-WebGlobalModule

Published: February 29, 2012

Updated: August 15, 2012

Applies To: Windows Server 2012

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.

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'

Related topics

Disable-WebGlobuleModule

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft