Disable-WebGlobalModule

Disables the specified IIS module.

Syntax

Disable-WebGlobalModule
       [-Name] <String>
       [-Location <String[]>]
       [[-PSPath] <String[]>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

Disables the specified IIS module.

Examples

-------------- EXAMPLE 1: Disable a module --------------

IIS:\>Disable-WebGlobalModule -Name FastCgiModule -PSPath 'IIS:\sites\Default Web Site'

Disables the FastCGI module for the Default Web Site.

Required Parameters

-Name

The name of the module to disable.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

The location of the module to disable.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False