Import-DCContext
Synopsis
Import a PSHubContext from a .json file at the path received.
Syntax
Secure Password
Import-DCContext -Path <string> -SecurePassword [<CommonParameters>]Password
Import-DCContext -Path <string> [-Password <string>] [<CommonParameters>]Description
Import a PSHubContext from a .json file at the path received. If SecurePassword is provided, prompt to enter a password to decrypt the .json file. If Password provided, decrypt the .json file with the password received.
Examples
Example 1
PS C:\> Import-DCContext -Path "C:\PATH\TO\YOUR\FILE\file.json"Import a standard PSHubContext.
Example 2
Import the PSHubContext from a file protected by a password.
Example 3
Import the PSHubContext from a file protected by a password. The user will be prompted for the password.
Parameters
-Password
Will decrypt the file with the clear password
-Path
The file path of Devolutions Cloud context to import.
-SecurePassword
Will prompt the password to decrypt the file with
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-DCContext -detailed". For technical information, type "Get-Help Import-DCContext -full".
Last updated
Was this helpful?