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

Import-HubContext

Synopsis

Import a PSHubContext from a .json file at the path received.

Syntax

Secure Password

Import-HubContext -Path <string> -SecurePassword [<CommonParameters>]

Password

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

Last updated

Was this helpful?