Disable-Web
Global
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.
Required Parameters
Specifies 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
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 |
Specifies the location of the module.
Type: | String[] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
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 |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
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 |