Set-RDMEntryTags
Synopsis
Set an entry's tags
Syntax
ID
Set-RDMEntryTags [-ID] <guid> [-Tags] <string[]> [-PassThru] [-Refresh] [-Set]
[-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm]
[<CommonParameters>]InputObject
Set-RDMEntryTags [-InputObject] <PSConnection> [-Tags] <string[]> [-PassThru] [-Refresh] [-Set]
[-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm]
[<CommonParameters>]Description
Sets the tags for the specified entry from an array. This replaces all existing tags on the entry (inherited tags are not affected). To persist the new tags when using the InputObject parameter set, the switch Set must be used. When using the ID parameter set, the entry is automatically saved. The user must have the right to edit the entry. Tag inheritance can be enabled on the vault level by modifying the root connection object.
Examples
Example 1
Set tags on an entry using its ID.
Example 2
Set tags on an entry using InputObject and save the changes.
Example 3
Pipeline usage with InputObject and PassThru to return the modified entry.
Example 4
Clear all tags from an entry.
Example 5
Get, modify, and set tags on an entry.
Example 6
Chain multiple modifications using PassThru and save with Set-RDMEntry.
Parameters
-Confirm
Prompts for confirmation before running the cmdlet.
-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.
-ID
Specifies the ID of the entry to set tags on. Must be a valid GUID, in the form {00000000-0000-0000-0000-000000000000}.
-InputObject
Specifies the entry to set tags on.
-PassThru
Return the modified entry.
-Refresh
Refresh entries in the vault. Use Set switch to persist the modification. For modification in bulk, use Update-RDMEntries after the modifications instead of this switch.
-Set
Save the modified entry.
-Tags
Array of tags to set on the entry. Pass an empty array to clear all tags.
-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.
-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.PSConnection
PSConnection object of the entry to set tags on.
Outputs
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection
Entry with the newly assigned tags is returned when PassThru is used.
Notes
For more information, type "Get-Help Set-RDMEntryTags -detailed". For technical information, type "Get-Help Set-RDMEntryTags -full".
Last updated
Was this helpful?