New-WebManagedModule

Adds a new managed module to the IIS request pipeline.

Syntax

New-WebManagedModule
   [-Name] <String>
   [-Type <String>]
   [-Precondition <String>]
   [-Force]
   [-Location <String[]>]
   [[-PSPath] <String[]>]
   [<CommonParameters>]

Description

Adds a new managed module to the IIS request pipeline.

Examples

-------------- EXAMPLE 1: Add a new managed module to the Default Web Site --------------

IIS:\>New-WebManagedModule -Name ContosoModule -Type Contoso.MyModule

The example demonstrates how to add a new module named "ContosoModule" to the Default Web Site.

Required Parameters

-Name

The name of the new managed module.

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

Optional Parameters

-Force

Forces the new module to be added.

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

The location for which the new handler applies.

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

An IIS configuration path.

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

Specifies any precondition(s) of the new managed module.

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

The .NET Framework type of the new managed module.

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