Unprotect-MgmtSvcConfiguration
Decrypts sections of the web.config file for a namespace.
Unprotect-MgmtSvcConfiguration
[-Namespace] <String>
[-WhatIf]
[-Confirm]
[<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.
PS C:\> Unprotect-MgmtSvcConfiguration -Namespace "AdminSite"
This command decrypts the connectionStrings and appSettings sections of the web.config file for the namespace AdminSite.
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 |
Specifies a namespace.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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 |