Invoke-IISServerConfig
SYNOPSIS
Configure a new IIS server.
SYNTAX
Invoke-IISServerConfig [-iisServer] <String[]> [-task] <UInt64> [[-logDrive] <String>] [[-appDrive] <String>]
[<CommonParameters>]
DESCRIPTION
This function sets up a new IIS server by performing the following tasks: - Establishing a session with the server - Installing required Windows features for IIS - Configuring NTFS and share permissions - Setting up IIS logging and authentication - Creating a default ProbeTest site - Copying necessary installation files (e.g., .NET Core, URL Rewrite) - Enabling remote IIS management - Logging the process and updating the associated HEAT task
EXAMPLES
EXAMPLE 1
Configures the IIS servers 'SRVIIS01' and 'SRVIIS02' and logs the process in HEAT task 12345.
EXAMPLE 2
Configures the IIS server 'SRVIISPR01' with custom log and application drives and logs the process in HEAT task 67890.
PARAMETERS
-iisServer
An array of standalone server names to configure.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-task
The HEAT task number where the transcript of the operation will be logged.
Type: UInt64
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-logDrive
The drive letter to use for logging (default: 'L').
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: L
Accept pipeline input: False
Accept wildcard characters: False
-appDrive
The drive letter to use for application data (default: 'M').
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: M
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.