Export-SCACAesKey

Export-SCACAesKey

Exports the App Controller AES key from the registry to the specified file.

構文

Parameter Set: Default
Export-SCACAesKey [-Path] <String> [-Password] <SecureString> [ <CommonParameters>]

詳細説明

The Export-SCACAESKey cmdlet exports the Advanced Encryption Standard (AES) key from the registry to the specified file. Use the Path parameter to specify the destination file.

You must run the command shell as Administrator when using this cmdlet. This cmdlet must be run on the computer on which App Controller is installed.

NOTE: Prior to running this cmdlet, you must create a connection to the App Controller server by using the Get-SCACServer cmdlet.

パラメーター

-Password<SecureString>

Specifies a secure string that contains a password.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Path<String>

Specifies a file location path.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String, System.Security.SecureString

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Export the AES key to a file

The first command prompts you to supply credentials with permission to connect with the App Controller server, and stores the credentials in the $Credentials parameter.

The second command establishes a connection to the App Controller server named AppControllerSvr01 using the credentials stored in $Credentials.

The third command creates a secure string for the provided password and stores the secure string in the $Password variable.

The last command exports the AES key to the Key.txt file at the specified file path using the password stored in $Password.

PS C:\> $Credentials = Get-Credential
PS C:\> Get-SCACServer -ServerName "https://AppControllerSvr01.Contoso.com" -Credential $Credentials
PS C:\> $Password = ConvertTo-SecureString "PassWord!" -AsPlainText -Force
PS C:\> Export-SCACAESKey -Path "C:\Keys\Key.txt" -Password $Password

関連トピック

Get-SCACServer