Enable-WebGlobalModule

Enables the specified IIS module.

Syntax

Enable-WebGlobalModule
      [-Name] <String>
      [-Type <String>]
      [-Precondition <String>]
      [-Force]
      [-Location <String[]>]
      [[-PSPath] <String[]>]
      [<CommonParameters>]
Enable-WebGlobalModule
      -InputObject <PSObject>
      [-Force]
      [-Location <String[]>]
      [[-PSPath] <String[]>]
      [<CommonParameters>]

Description

Enables the specified IIS module.

Examples

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

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

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

Required Parameters

-InputObject

Input object that contains the module information.

Type:PSObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

The name of the module to enable.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Force

Forces the module to be enabled.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Location

The location in which the module is enabled.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PSPath

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.

Type:String[]
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Precondition

Specifies a precondition for the module.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Type

Specifies the managed type of the module.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False