Set-WFCertificateAutoGenerationKey
Updated: September 7, 2012
Set-WFCertificateAutoGenerationKey
Syntax
Parameter Set: AutoCert Set-WFCertificateAutoGenerationKey -Key <SecureString> [-WFFarmDBConnectionString <String> ] [ <CommonParameters>]
Detailed Description
Run Set-WFCertificateAutoGenerationKey to allow the administrator to change the key used for encrypting auto-generated certificates.
Parameters
-Key<SecureString>
The key used for encrypting auto-generated certificates.
Aliases | none |
Required? | true |
Position? | named |
Default Value | none |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
-WFFarmDBConnectionString<String>
Specifies the connection string for the SQL Server instance being added as the farm management database.
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
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1
This cmdlet allows the administrator to re-generate the Certificates and to change the key used for encrypting auto-generated certificates.
PS C:\> $CertKey=convertto-securestring ‘CertificatePassword’ -asplaintext -force; Set-WFCertificateAutoGenerationKey –Key $CertKey
Example 2
The following example demonstrates how to use the WFFarmDBConnectionString parameter.
PS C:\> $autoGenerateKey = convertto-securestring 'CertAutoGenKey123' -asplaintext -force PS C:\> Set-WFCertificateAutoGenerationKey -WFFarmDBConnectionString 'dbConnectionString' -key $autoGenerateKey -Verbose