Set-NAVWebServerInstanceConfiguration

Changes configuration values for a named web server instance.

Syntax

Set-NAVWebServerInstanceConfiguration
   [-WebServerInstance] <String>
   -KeyName <String>
   -KeyValue <String>
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Use this cmdlet to change configuration values for a named web server instance. These values are written directly to the configuration file. The changes will be applied to the web server automatically since the application pool detects the configuration change and performs a recycle. When the application pool is recycled by the IIS, static state such as client sessions in the Microsoft Dynamics NAV Web client will be lost.

Examples

EXAMPLE 1

Set-NAVWebServerInstanceConfiguration -WebServerInstance DynamicsNAV -KeyName CompanyName -KeyValue "CRONUS International Ltd."

This example sets the web server instance configuration.

Required Parameters

-KeyName

Specifies the configuration key name.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-KeyValue

Specifies the configuration key value.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WebServerInstance

Specifies the name of a Dynamics NAV web server instance for which to return the information.

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

Optional Parameters

-Confirm

Prompts you for confirmation before executing the command.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-WhatIf

Describes what would happen if you executed the command without actually executing the command.

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

Inputs

System.String

You can pipe a string that contains a Microsoft Dynamics NAV web server instance name to the cmdlet.

Outputs

None