Modifier

Partager via


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

The New-WebManagedModule cmdlet adds a new managed module to the Internet Information Services (IIS) request pipeline.

Examples

Example 1: Add a new managed module to the default website

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

This command adds a new module named ContosoModule to the default website.

Parameters

-Force

Forces the command to run without asking for user confirmation.

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

-Location

Specifies the location for which the new handler applies.

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

-Name

Specifies the name of the new managed module.

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

-Precondition

Specifies any preconditions for the new managed module.

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

-PSPath

Specifies an IIS configuration path.

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

-Type

Specifies the .NET Framework type of the new managed module.

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