New-SqlBackupEncryptionOption
Creates the encryption options for the Backup-SqlDatabase cmdlet or the Set-SqlSmartAdmin cmdlet.
语法
Default (默认值)
New-SqlBackupEncryptionOption
[-NoEncryption]
[-Algorithm <BackupEncryptionAlgorithm>]
[-EncryptorType <BackupEncryptorType>]
[-EncryptorName <String>]
[<CommonParameters>]
说明
The New-SqlBackupEncryptionOption cmdlet creates the encryption options for the Backup-SqlDatabase cmdlet or the Set-SqlSmartAdmin cmdlet.
示例
Example 1: Create encryption options
PS C:\> $EncryptionOption = New-SqlBackupEncryptionOption -Algorithm Aes256 -EncryptorType ServerCertificate -EncryptorName "BackupCert"
This command creates the encryption options and stores the result in the variable named $EncrytionOption
参数
-Algorithm
Specifies the encryption algorithm.
参数属性
类型: | BackupEncryptionAlgorithm |
默认值: | None |
接受的值: | Aes128, Aes192, Aes256, TripleDes |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | Named |
必需: | False |
来自管道的值: | False |
来自管道的值(按属性名称): | False |
来自剩余参数的值: | False |
-EncryptorName
Specifies the name of the server certificate or server asymmetric key.
参数属性
类型: | String |
默认值: | None |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | Named |
必需: | False |
来自管道的值: | False |
来自管道的值(按属性名称): | False |
来自剩余参数的值: | False |
-EncryptorType
Specifies the encryptor type.
参数属性
类型: | BackupEncryptorType |
默认值: | None |
接受的值: | ServerCertificate, ServerAsymmetricKey |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | Named |
必需: | False |
来自管道的值: | False |
来自管道的值(按属性名称): | False |
来自剩余参数的值: | False |
-NoEncryption
Indicates that this cmdlet disables encryption. This parameter cannot be used with any other parameters.
参数属性
类型: | SwitchParameter |
默认值: | None |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | Named |
必需: | False |
来自管道的值: | False |
来自管道的值(按属性名称): | False |
来自剩余参数的值: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
输出
Microsoft.SqlServer.Management.Smo.BackupEncryptionOptions
This cmdlet is used as input to the EncryptionOption parameter for the Backup-SqlDatabase and Set-SqlSmartAdmin cmdlets.