New-Web Managed Module

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.

Required Parameters

-Name

Specifies 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 command to run without asking for user confirmation.

Type: SwitchParameter
Position: Named
Default value: None
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
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-PSPath

Specifies an IIS configuration path.

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

Specifies any preconditions for the new managed module.

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

Specifies 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