Export (0) Print
Expand All
Expand Minimize

Enable-WebGlobalModule

Windows Server 2012 R2 and Windows 8.1

Enable-WebGlobalModule

Enables an 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

The Enable-WebGlobalModule cmdlet enables the specified Internet Information Services (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>

Specifies an 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[]>

Specifies the location in which this cmdlet enables the module.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies 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 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.


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 (http://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

This command enables the module named UriCacheModule for the default website.


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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft