Set-MgmtSvcSetting

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

Syntax

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

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.

Examples

Example 1: Enable server certificate validation

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

This command enables server certificate validation for the AdminSite namespace.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Encode

Indicates that the management service encodes the setting.

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

-Name

Specifies the name of the management service setting.

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

-Namespace

Specifies an array of namespaces of management service settings.

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

-SkipUpdateHash

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

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

-Value

Specifies the value of a setting.

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

-WhatIf

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

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