New-MgmtSvcPassword

New-MgmtSvcPassword

Creates a random password.

Syntax

Parameter Set: Default
New-MgmtSvcPassword [-Length <Int32> ] [ <CommonParameters>]


 

Detailed Description

The New-MgmtSvcPassword cmdlet generates a cryptographically strong password for use with other settings. This cmdlet generates a value in memory. The Initialize-MgmtSvcFeature cmdlet calls this cmdlet to generate the passwords used across Windows Azure Pack for Windows Server components. For example, passwords used for database connection strings and access to resource providers.

Use this cmdlet to generate a cryptographically secure random password for use in setting basic authorization credentials. You can use the returned string as the value for the Value parameter for the Set-MgmtSvcSetting cmdlet, or as the password value in a connection string.

Parameters

-Length<Int32>

Specifies a password length. Choose a value between 8 and 128, in multiples of 4. The default length is 32 characters.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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: Create a password

This command creates a random password that contains 64 characters.

PS C:\> New-MgmtSvcPassword Length 64

 

Related topics

Set-MgmtSvcSetting