Supported PowerShell SqlServer cmdlets

PowerShell cmdlet Description

Add-SqlColumnEncryptionKeyValue

Adds a new encrypted value for an existing column encryption key object in the database.

Complete-SqlColumnMasterKeyRotation

Completes the rotation of a column master key.

Get-SqlColumnEncryptionKey

Returns all column encryption key objects defined in the database, or returns one column encryption key object with the specified name.

Get-SqlColumnMasterKey

Returns the column master key objects defined in the database, or returns one column master key object with the specified name.

Invoke-SqlColumnMasterKeyRotation

Initiates the rotation of a column master key.

New-SqlAzureKeyVaultColumnMasterKeySettings

Creates a SqlColumnMasterKeySettings object describing an asymmetric key stored in Azure Key Vault.

New-SqlCngColumnMasterKeySettings

Creates a SqlColumnMasterKeySettings object describing an asymmetric key stored in a key store supporting the Cryptography Next Generation (CNG) API.

New-SqlColumnEncryptionKey

Creates a new column encryption key object in the database.

New-SqlColumnEncryptionKeyEncryptedValue

Produces an encrypted value of a column encryption key.

New-SqlColumnEncryptionSettings

Creates a new SqlColumnEncryptionSettings object that encapsulates information about a single column’s encryption, including CEK and encryption type.

New-SqlColumnMasterKey

Creates a new column master key object in the database.

New-SqlCspColumnMasterKeySettings

Creates a SqlColumnMasterKeySettings object describing an asymmetric key stored in a key store with a Cryptography Service Provider (CSP) supporting Cryptography API (CAPI).

Remove-SqlColumnEncryptionKey

Removes the column encryption key object from the database.

Remove-SqlColumnEncryptionKeyValue

Removes an encrypted value from an existing column encryption key object in the database.

Remove-SqlColumnMasterKey

Removes the column master key object from the database.

Set-SqlColumnEncryption

Encrypts, decrypts or re-encrypts specified columns in the database.

The full list of cmdlets and additions to the SqlServer module can be found in the Microsoft Online Documentation.