Test-MgmtSvcProtectedConfiguration

Test-MgmtSvcProtectedConfiguration

Tests whether a configuration is protected.

Syntax

Parameter Set: Default
Test-MgmtSvcProtectedConfiguration [-Namespace] <String> [ <CommonParameters>]


 

Detailed Description

The Test-MgmtSvcProtectedConfiguration cmdlet tests whether the sections of the Web.config file that contain secrets are protected. If the configuration for the namespace is protected, a value of True is returned. If the configuration is not protected, a value of False is returned. The cmdlet displays a warning if the configuration is not protected.

It is recommended that you keep your Web.config file protected. To protect a configuration, use the Protect-MgmtSvcConfiguration cmdlet. You can unprotect your configuration to update the Web.config file by using the Unprotect-MgmtSvcConfiguration. However, you should then return the configuration to a protected state.

Parameters

-Namespace<String>

Specifies a namespace.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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: Test a protectected configuration

This command tests the protected configuration for the namespace AdminSite.

PS C:\> Test-MgmtSvcProtectedConfiguration -Namespace "AdminSite"

 

Related topics

Protect-MgmtSvcConfiguration

Unprotect-MgmtSvcConfiguration