New-WebGlobalModule

Creates an IIS global module.

Syntax

New-WebGlobalModule
   [-Name] <String>
   [-Image <String>]
   [-Precondition <String>]
   [-Force]
   [<CommonParameters>]

Description

The New-WebGlobalModule cmdlet creates an Internet Information Services (IIS) global module.

Examples

Example 1: Add a new module

IIS:\> New-WebGlobalModule -Name "testGlobalModule" -Image "c:\test\test.dll"

This command adds a new module to the global Modules list.

Parameters

-Force

Forces the creation of the new module.

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

-Image

Specifies the path to a DLL image file (native modules only) for the new module.

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

-Name

Specifies the name of the new module.

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

-Precondition

Specifies any preconditions to be used for the new module.

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