Modifier

Partager via


Disable-WebGlobalModule

Disables an IIS module.

Syntax

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

Description

The Disable-WebGlobalModule cmdlet disables the specified Internet Information Services (IIS) module.

Examples

Example 1: Disable a module

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

This command disables the FastCGI module for the default website.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Location

Specifies the location of the module.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of the module to disable.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PSPath

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.

Type:String[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False