Set-MgmtSvcSetting

Set-MgmtSvcSetting

Changes settings of a management service component in the local web.config file.

Syntax

Parameter Set: Default
Set-MgmtSvcSetting [-Namespace] <String> [-Name] <String> [[-Value] <String> ] [-Encode] [-SkipUpdateHash] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Set-MgmtSvcSetting cmdlet changes configuration settings for a management service component. You can use this cmdlet to change the values for the specified settings in the specified namespace. You can also make updates to machine keys and credentials, and enable server certificate validation.

You must run this cmdlet on the computer that hosts the management services.

Parameters

-Encode

Indicates that the management service encodes the setting.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Name<String>

Specifies the name of the management service setting.

 

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Namespace<String>

Specifies an array of namespaces of management service settings.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-SkipUpdateHash

Indicates that the cmdlet does not update the hash table when it modifies a setting.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Value<String>

Specifies the value of a setting.

 

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

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.

 

Required?

false

Position?

named

Default Value

none

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.

Examples

Example 1: Enable server certificate validation

This command enables server certificate validation for the AdminSite namespace.

PS C:\> Set-MgmtSvcSetting -Namespace "AdminSite" -Name DisableCertificateValidation" -Value False

 

Related topics

Get-MgmtSvcSetting

Protect-MgmtSvcConfiguration

Unprotect-MgmtSvcConfiguration