Unprotect-MgmtSvcConfiguration

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

Syntax

Unprotect-MgmtSvcConfiguration
         [-Namespace] <String>
         [-WhatIf]
         [-Confirm]
         [<CommonParameters>]

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.

Examples

Example 1: Decrypt the web.config file for a namespace

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

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

Required Parameters

-Namespace

Specifies a namespace.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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.

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