New-Web
Managed
Module
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
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
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 |
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 |
Specifies an IIS configuration path.
Type: | String[] |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Specifies any preconditions for the new managed module.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
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 |