Update-DSEntryBase
Synopsis
Update an entry.
Syntax
Value
Update-DSEntryBase [-JsonBody] <string> [-AsLegacyResponse] [<CommonParameters>]RDMConnection
Update-DSEntryBase [-FromRDMConnection] <ConnectionInfoEntity> [-AsLegacyResponse]
[<CommonParameters>]Description
Update an entry (Modified entry should be in jsonBody). Unless you know exactly what you are doing, you should probably use the CMDlets created by us to update entries.
Examples
Example 1
PS C:\> $credResponse = Get-DSEntry -EntryID $id
$cred = $credResponse.data
$cred.data.passwordItem | Add-Member -MemberType NoteProperty -Name SensitiveData -Value 'newPassword'
Update-DSEntryBase -JsonBody (ConvertTo-Json -InputObject $cred -Depth 4)An existing credential entry with an existing password is fetched. Its password is changed to 'newPassword' by adding a sensitive data property to passwordItem. The entry is converted in json with the requiered depth to avoid being flatten. The entry is updated afterwards.
Example 2
An existing credential entry with an existing password is fetched. Its password is changed to 'newPassword' by adding a sensitive data property to passwordItem. The entry is converted in json with the requiered depth to avoid being flatten. The entry is updated afterwards.
Example 3
Set the default Devolutions Gateway on the entry with the connect mode 'Always Connect' and the close mode 'On session close'
Parameters
-AsLegacyResponse
In versions prior to 2024.2, many DS cmdlets returned a ServerResponse object. Enabling this backward compatibility switch allows scripts developed for earlier versions to function correctly.
-FromRDMConnection
Entry obtained from Get-DSEntry -AsRDMConnection. It can be used to update an entry
-JsonBody
Entry in JSON
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 Update-DSEntryBase -detailed". For technical information, type "Get-Help Update-DSEntryBase -full".
Last updated
Was this helpful?