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

Import-DPSEncryptionKeys

Synopsis

Apply new encryption keys on the database of the a Devolutions Server instance

Syntax

__AllParameterSets

Import-DPSEncryptionKeys [-ApplicationPath] <string> [-Filename] <string> [[-Password] <PSPassword>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Apply new encryption keys on the database of the a Devolutions Server instance. The encryption keys file should be generated from Export-DPSEncryptionKeys. A backup of the SQL database should be done before this operation. All users must be in offline mode or disconnected from the Devolutions Server workspace to avoid data loss.

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.

-Filename

Encryption keys file to import

-Password

Password to access the encryption keys file

-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 Import-DPSEncryptionKeys -detailed". For technical information, type "Get-Help Import-DPSEncryptionKeys -full".

Last updated

Was this helpful?