Unprotect-MgmtSvcConfiguration

Unprotect-MgmtSvcConfiguration

Decrypts sections of the web.config file for a namespace.

Syntax

Parameter Set: Default
Unprotect-MgmtSvcConfiguration [-Namespace] <String> [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Unprotect-MgmtSvcConfiguration cmdlet decrypts sections of the web.config file for a specified namespace. The cmdlet decrypts the sections of the web.config file that contains secrets, such as connectionStrings, appSettings, and machineKey. To encrypt these sections, use the Protect-MgmtSvcConfiguration cmdlet.

Run this cmdlet on the computer that hosts the web.config file.

Parameters

-Namespace<String>

Specifies a namespace.

 

Aliases

none

Required?

true

Position?

1

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: Decrypt the web.config file for a namespace

This command decrypts the connectionStrings and appSettings sections of the web.config file for the namespace AdminSite.

PS C:\> Unprotect-MgmtSvcConfiguration -Namespace "AdminSite"

 

Related topics

Protect-MgmtSvcConfiguration

Test-MgmtSvcProtectedConfiguration

Get-MgmtSvcSetting

Set-MgmtSvcSetting