Hi I need a script to crate a secure note by powershell
I tried this one:
Import-Module "${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"
$NewRDMSession = New-RDMSession -Name TestSecureNote -Type DataEntry
$data = @(
@{Data='';DataEntryConnectionType='SecureNote';SafeData='';SubConnectionType=''}
)
$NewRDMSession.DataEntry.ConnectionTypeInfos= $data
$NewRDMSession.DataEntry.ClearTextSecureNote="ProvaClearText"
$NewRDMSession.DataEntry.SecureNoteType="Text"
$NewRDMSession |set-RDMSession
it create a securenote but content is RTF and not TEXT
I need to create TEXT type notes
can you help me?
Hello,
I am moving your thread into the PowerShell Repository section.
My team will analyze your topic and get back to you shortly.
Best regards,
Jeff Dagenais
Hello,
Thank you for your patience.
I have been able to reproduce the same behaviour. Even if I use the enum value for the SecureNoteType property, it will automatically set the Secure Note to RTF.
A ticket has been opened to our engineering department regarding your case.
When the engineering department resolves the issue, a comment will be added to this thread.
Best regards,
Érica Poirier
Hi,
Version 2022.3 is scheduled to release today and will allow the creation of clear text secure note.
Here's a script snippet showing the updated way
$NewRDMSession = New-RDMSession -Name TestSecureNote -Type DataEntry
$data = @( @{DataEntryConnectionType=”SecureNote”} )
$NewRDMSession.DataEntry.ConnectionTypeInfos= $data
$NewRDMSession.DataEntry.SecureNoteRtf="ProvaClearText"
$NewRDMSession.DataEntry.SecureNoteType="Text"
set-RDMSession $NewRDMSessionJonathan Lafontaine