For the complete documentation index, see llms.txt. This page is also available as Markdown.

Export-DPSEncryptionKeys

Synopsis

Export the encryption keys in a file

Syntax

NonEncrypted (Default)

Export-DPSEncryptionKeys [-ApplicationPath] <string> [-Destination] <string> [-NoClobber] [-WhatIf]
 [-Confirm] [<CommonParameters>]

Encrypted

Export-DPSEncryptionKeys [-ApplicationPath] <string> [-Destination] <string>
 [[-Password] <PSPassword>] -Encrypt [-NoClobber] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Export the encryption keys in a file. The encryption.config file cannot be moved to another system, as it is encrypted with the data protection application programming interface (DPAPI), which prevents the file from being read outside of the system where it has been encrypted. You must export the file then import it to the other system.

Examples

On a Windows OS

PS C:\> $existingDVLSInstance = 'C:\my\path\dvlsInstance\'
PS C:\> $destination = 'C:\other\path\encryption.config'
PS C:\> Export-DPSEncryptionKeys -ApplicationPath $existingDVLSInstance -Destination $destination

On a Linux OS, while creating a new DLVS instance using the same database PS home/user/linuxDlvsInstance> $newDvlsInstance = '/home/user/linuxDlvsInstance' PS home/user/linuxDlvsInstance> $keysToImport = '/path/to/encryption.config' PS home/user/linuxDlvsInstance> Import-DPSEncryptionKeys -ApplicationPath $newDvlsInstance -Filename $keysToImport

Export the encryption keys from a Windows DVLS. Use those keys when creating a new DVLS instance using the same database.

Parameters

-ApplicationPath

Directory of the application.

-Confirm

Prompts you for confirmation before running the cmdlet.

-Destination

Destination for the new encryption configuration file

-Encrypt

Encrypt the configuration. For Windows only.

-NoClobber

Prevents the cmdlet from overwriting existing files. If a file with the specified name already exists, the cmdlet will generate an error instead of overwriting the file.

-Password

Password to protect the exported file. Accepts a string or secure string.

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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.

Notes

For more information, type "Get-Help Export-DPSEncryptionKeys -detailed". For technical information, type "Get-Help Export-DPSEncryptionKeys -full".

Last updated

Was this helpful?