Set-WebManagedModule

Configures an IIS managed module.

Syntax

Set-WebManagedModule
   [-Name] <String>
   [-Type <String>]
   [-Precondition <String>]
   [-Location <String[]>]
   [[-PSPath] <String[]>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-WebManagedModule cmdlet configures an Internet Information Services (IIS) managed module.

Examples

Example 1: Change a property of a managed module

IIS:\> Set-WebManagedModule -Name "UrlMappingsModule" -Type "Test.Test"

This command changes the type of the module named UrlMappingsModule.

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 on which to set the configuration.

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

-Name

Specifies the name of the managed module to configure.

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

-Precondition

Specifies preconditions of the module.

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

-PSPath

Specifies an IIS configuration path to the module.

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

-Type

Specifies the managed type of the module.

Type:String
Position:Named
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