Set-RDMVaultCustomVariable
Synopsis
Add or edit custom variables in a vault.
Syntax
__AllParameterSets
Set-RDMVaultCustomVariable [-Variable] <PSVaultVariable[]> [-VaultMode <VaultMode>]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Add or edit custom variables in a vault and save the changes. The user must have the rights to edit the vault settings. This command is not available on the global vault.
Examples
Example 1
PS C:\> $var1 = New-RDMVaultCustomVariable -Name 'Var1' -Value 'Value1'
PS C:\> $var2 = New-RDMVaultCustomVariable -Name 'Var2' -Value 'Value2'
PS C:\> Set-RDMVaultCustomVariable -Variable $var1, $var2Add multiple variables to the current vault.
Parameters
-ForcePromptAnswer
Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:
Yes: Accept the prompt. Cover the OK and Automatic value.
No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.
Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.
-VaultMode
Vault where the command will be applied. Three choices are offered: - Default: Current vault that has been set. - User: Vault specific to the current user. - Global: Global vault of the workspace.
-Variable
Custom variables to apply.
-WhatIf
Shows what would happen if the cmdlet were to run. The cmdlet does 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.
Inputs
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSVaultVariable
Variables to add or edit.
Notes
For more information, type "Get-Help Set-RDMVaultCustomVariable -detailed". For technical information, type "Get-Help Set-RDMVaultCustomVariable -full".
Last updated
Was this helpful?