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

Save-HubContext

Synopsis

Save the current PSHubContext to a .json file at the path received

Syntax

Secure Password

Save-HubContext -Path <string> -SecurePassword [-PSHubContext <PSHubContext>] [-Force]
 [<CommonParameters>]

Password

Save-HubContext -Path <string> [-PSHubContext <PSHubContext>] [-Password <string>] [-Force]
 [<CommonParameters>]

Description

Save the current PSHubContext to a .json file at the path received. If PSHubContext is provided, save this one to a .sjon file. If Force is provided, overwrite file if the path already exist. If SecurePassword is provided, prompt to user to enter a password to encrypt the .json file. If Password provided, encrypt the .json file with the password received.

Examples

Example 1

PS C:\> Save-HubContext -Path "C:\PATH\TO\YOUR\FILE\file.json"

Save the current PSHubContext.

Example 2

Save the current PSHubContext in a file protected by a password.

Example 3

Fetch all available contexts. Save the third PSHubContext in a file protected by a password who will be filled be a prompt.

Parameters

-Force

Overwrite the file if exist

-Password

Will encrypt the file with the clear password

-Path

Specifies the path of the file to save Devolutions Cloud context.

-PSHubContext

Save Devolutions Cloud context to file.

-SecurePassword

Will prompt the password to encrypt 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 Save-HubContext -detailed". For technical information, type "Get-Help Save-HubContext -full".

Last updated

Was this helpful?