次の方法で共有


New-SqlCspColumnMasterKeySettings

CAPI をサポートする CSP を使用して、キー ストアに格納されている非対称キーを記述する SqlColumnMasterKeySettings オブジェクトを作成します。

構文

New-SqlCspColumnMasterKeySettings
   [-CspProviderName] <String>
   [-KeyName] <String>
   [<CommonParameters>]

説明

New-SqlCspColumnMasterKeySettings コマンドレットは、SqlColumnMasterKeySettings オブジェクトを作成します。 SqlColumnMasterKeySettings オブジェクトは、Microsoft Crypto API (CAPI) をサポートする暗号化サービス プロバイダー (CSP) を使用してキー ストアに格納されているキーを参照します。 SqlColumnMasterKeySettings オブジェクトには、KeyStoreProviderName と KeyPath の 2 つのプロパティがあります。 このコマンドレットは、CSP/CAPI を使用して列マスター キー ストア プロバイダーの名前を含む KeyStoreProviderName プロパティを設定し、指定したキーを参照する KeyPath プロパティの値を生成して設定します。

例 1: SqlColumnMasterKeySettings オブジェクトを作成する

PS C:\> $CmkSettings = New-SqlCspColumnMasterKeySettings -CspProviderName "Microsoft Software Key Storage Provider" -KeyName "AlwaysEncryptedKey"

このコマンドは、Microsoft Software Key Storage Provider という CSP プロバイダーによってカプセル化されたキー ストア内のキーを参照する SqlColumnMasterKeySettings オブジェクトを作成します。

パラメーター

-CspProviderName

キー ストアの CSP プロバイダーの名前を指定します。

型:String
配置:0
規定値:None
必須:True
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-KeyName

キー ストア内のキーの名前を指定します。

型:String
配置:1
規定値:None
必須:True
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

出力

SqlColumnMasterKeySettings