Set-DSEntryProperty
Synopsis
Set a property on an entry. The entry is not saved to the server.
Syntax
__AllParameterSets
Set-DSEntryProperty [-Entry] <ConnectionInfoEntity> [[-Path] <string>] [-PropertyName] <string>
[-PropertyValue] <Object> [<CommonParameters>]Description
Set a property on an entry and return the modified object. The entry is not saved to the server; use Update-DSEntryBase -FromRDMConnection to persist changes. This cmdlet enables pipeline-based property updates, allowing multiple property modifications before saving.
Examples
Example 1
PS C:\> $entry = Get-DSEntry -EntryID "{00000000-0000-0000-0000-000000000000}" -AsRDMConnection
PS C:\> $entry.ConnectionInfo | Set-DSEntryProperty -PropertyName "HostPassword" -PropertyValue "MyNewPassword" | Update-DSEntryBaseGet an entry, set its password, and save it to the server. This is intended for non-credential entries; for credential entries, see the following example.
Example 2
Set a credential entry's password.
Example 3
Set tags on an entry using the MetaInformation path. Tags are space-separated. Tags containing spaces should be quoted.
Example 4
Get entries whose name starts with 'Prod' across all vaults and set the 'production' tag on each.
Example 5
Chain multiple property updates in a pipeline before saving: rename, change host, move to folder, set its description and its credentials.
Example 6
Set custom fields on an entry. CustomField[1-5]Value stores plain text, while CustomField[1-5]ValueSensitive automatically encrypts values when saved. Set CustomField[1-5]Hidden to true to mark encrypted fields as sensitive in the UI.
Example 7
Convert a sensitive custom field to plain text by setting CustomField[1-5]Hidden to false and setting CustomField[1-5]Value. The sensitive value is automatically cleared.
Parameters
-Entry
The entry to modify.
-Path
The path to the property (e.g., 'MetaInformation'). Leave empty for top-level properties. This parameter is case-sensitive.
-PropertyName
The name of the property to set (e.g., 'HostUserName', 'HostPassword', 'Description'). This parameter is case-sensitive.
-PropertyValue
The new value for the property.
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
Devolutions.RemoteDesktopManager.Business.Entities.ConnectionInfoEntity
Entry connection info.
Outputs
Devolutions.RemoteDesktopManager.Business.Entities.ConnectionInfoEntity
Notes
For more information, type "Get-Help Set-DSEntryProperty -detailed". For technical information, type "Get-Help Set-DSEntryProperty -full".
Last updated
Was this helpful?