Set-NAVWebServerInstanceConfiguration

Set-NAVWebServerInstanceConfiguration

Changes configuration values for a named web server instance.

Syntax

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

Detailed 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.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-KeyName<String>

The configuration key name.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-KeyValue<String>

The configuration key value.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WebServerInstance<String>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None

    This cmdlet does not generate any output.

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

This example sets the web server instance configuration.

PS C:\> Set-NAVWebServerInstanceConfiguration -WebServerInstance DynamicsNAV90 -KeyName CompanyName -KeyValue "CRONUS International Ltd.”