Decrypts sections of the web.config file for a namespace.
Syntax
Parameter Set: Default
Unprotect-MgmtSvcConfiguration [-Namespace] <String>
[-Confirm] [-WhatIf] [ <CommonParameters>]
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.
Specifies a namespace.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
This command decrypts the connectionStrings and appSettings sections of the web.config file for the namespace AdminSite.
PS C:\> Unprotect-MgmtSvcConfiguration -Namespace "AdminSite"
Test-MgmtSvcProtectedConfiguration