Test-MgmtSvcPassphrase

Validates the passphrase on a configuration database.

Syntax

Test-MgmtSvcPassphrase [-ConnectionString <String>] -Passphrase <String> [<CommonParameters>]
Test-MgmtSvcPassphrase [-Database <String>] -Passphrase <String> [-Password <String>] [-Server <String>]
 [-UserName <String>] [<CommonParameters>]

Description

The Test-MgmtSvcPassphrase cmdlet validates the passphrase that the management service uses to encrypt sensitive data in the configuration database.
The passphrase is always valid if it doesn't exist and complies with the complexity requirements.
The passphrase should have more than eight characters and contain at least one non-alphanumeric character.
Additionally, Test-MgmtSvcPassphrase notifies you whether the passphrase was found.

You can run this cmdlet from any computer in the deployment.
However, this cmdlet assumes that the database is on the local computer.
If the database is on another computer, you must use the Server, UserName, Password, and Database parameters, or a SQL connection string.
If you specify a connection string by using the ConnectionString parameter, that value takes precedence over the Server, UserName, Password, and Database parameters.

Examples

Example 1: Validate a passphrase

PS C:\> Test-MgmtSvcPassphrase -Server "Contoso01" -UserName "sa" -Password '********' -Passphrase '*********'
This command validates the passphrase for the configuration store on the computer named Contoso01.

Parameters

-ConnectionString

Specifies an SQL connection string.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Database

Specifies a database name.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Passphrase

Specifies a passphrase.

The passphrase should have more than eight characters and contain at least one non-alphanumeric character.
Remember to protect the passphrase.
You cannot recover the passphrase.
You can use this cmdlet to set the passphrase for the first time in a deployment by specifying the Force parameter.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Password

Specifies a password.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Server

Specifies the name of the computer on which the SQL database resides.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-UserName

Specifies the name of a user account.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False