PowerShell: create new sessions and set custom fields

PowerShell: create new sessions and set custom fields

avatar

hi!

i'm creating a new database structure from a CSV file.

while i managed to create new sessions ...

$session=New-RDMSession -Name "Session Name" -Host "Hostname" -Group "Groupname" -Kind "RDPConfigured"

Set-RDMSession $session

... i could not figure out how to set session details like "description" to be a given url or add a custom field.

how can i create new sessions and update the other fields?

Kr

Guenther

https://www.gpunktschmitz.com

All Comments (5)

avatar

Hello,

Have you seen https://forum.devolutions.net/forum42-remote-desktop-manager--powershell-repository.aspx

It contains a lot of powershell information and has many examples. Just have a look and post a topic in there if you haven't found your answer.

Best regards,

Maurice

avatar

i actually missed that, i'll have a look .. thanks!

maybe a hint to that repository from the cmdlets help and in the help.remotedesktopmanager.com section would be good.

https://www.gpunktschmitz.com

avatar

I had the same kind of issue previously, and I ended up putting in a long request for all kinds of enhancements to make the powershell cmdlets "more standard" and "easier to use" :-)

But, I had a big chunk of it worked out, and here's an example what I had to do.. (names etc. have been changed to protect the innocent :banned: )

--------------------------------------------------------------------------------------------------------------------------------------------------------------

[guid]$CredentialPrompt = "45479560-173E-435D-8848-C22F863FDC96"

[guid]$CredentialParent = "E2CC9029-CA3A-4308-BA54-16D5029BC8ED" #(only for sub-connections)

[guid]$CredentialInherited = "1310CF82-6FAB-4B7A-9EEA-3E2E451CA2CF"

[guid]$CredentialAdmin = "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX""

$Group = 'DepartmentalServers'

$ServerDepartments = @('AA','BB','CC','DD')

foreach ($Department in $ServerDepartments)

{

$Session = New-RDMSession -Group $Group -Host "Dept-$Department" -Name "Dept-$Department" -Kind RDPConfigured

$Session.CredentialConnectionID = $CredentialAdmin.guid

$Session.Console = $true

$Session.AllowClipboard = $true

$Session.DisableFullWindowDrag = $true

$session.DisableMenuAnims = $true

$Session.DisableThemes = $true

$Session.DisableWallpaper = $true

$session.Console = $true

$session.PersonalConnectionID = $CredentialAdmin.guid

Set-RDMSession $Session

}

Update-RDMUI

--------------------------------------------------------------------------------------------------------------------------------------------------------------

So, you would just want to add a $session.Description (assuming that is correct field name)

David F.

avatar

Hi

This link:

Find answers to any technical question you might have about Devolutions’ products

(the link Maurice Côté gave in his answer)

does not work anymore...

Where can I find the info?

Kind Regards

avatar

Hello,

The PowerShell module now has its own section, the threads are now available here: https://forum.devolutions.net/forums/128/powershell-modules--support

Best regards,

Richard Boisvert