Forum / Remote Desktop Manager - PowerShell Repository

How to programatically change group fiolder properties and session properties

  • Create an Issue
  • Cancel

Can someone post sample of change the properties for Group Folders via powershell; i.e. how to change the credentials setting to "Credential repository" and "Prompt on connect", is there a list of the properties that can be changed somewhere?


Similar question for sessions; i.e. how to change the properties for Display to "Undocked" and Credentials to "Inherited", in this case I know we have the Set-RDMsessionproperty, but I can not find a list of the properties that I can change.


Kind regards,
Wayne Westfield

Clock5 yrs

first - Groups

REMEMBER : have a backup before running powershell scripts, they change a whole lot of sessions


cls;
Write-Host;
Write-Host "Fixing Groups"
Write-Host;
$entries = Get-RDMSession | where {$_.Kind -eq "Group"}
foreach ($entry in $entries)
{
Write-Host (" Processing : " + $entry.Name);
$entry.CredentialConnectionId = "00000000-0000-0000-0000-000000000000"
Set-RDMSession $entry;
}
Write-Host;
Write-Host "DONE!"
Write-Host;

edited by mcote on 12/19/2014



Maurice Côté

signaturesignature

Clock5 yrs

second - sesssions, I assumed RDP for now,


cls;
Write-Host;
Write-Host "Fixing RDP sessions"
Write-Host;
$Sessions = Get-RDMSession | where {$_.Kind -eq "RDPConfigured"}
foreach ($session in $Sessions)
{
Write-Host (" Processing : " + $session.Name);
$session.CredentialConnectionID = "1310CF82-6FAB-4B7A-9EEA-3E2E451CA2CF"
$session.Undocked = $true;
Set-RDMSession $session;
}
Write-Host;
Write-Host "DONE!"
Write-Host;

edited by mcote on 12/19/2014



Maurice Côté

signaturesignature

Clock5 yrs

Now for the documentation...


The current recommendation is to create a session first, save it.
Perform the changes, save it.
Go in View - Entry History, select the two versions and press compare

You will see the name of the properties and the values that you need to assign.

Granted that this is not ideal, but since we are using an open architecture, and we may not even know the internal structure used by add-ons, we havent the means to make a full fledged dictionary at this time.

I didn't even know before now that to indicate using inherited or prompt credentials, in fact we used a constant, so assuming you can identify all of the intricacies of our sessions just be looking at the XML structure is not realistic, we know that.

We are looking into resolving this, I assure you. We just need more time to come up with a solution.

In the mean time, use this forum to ask questions like this, we'll do our best to provide an answer.

Best regards,
edited by mcote on 12/19/2014



Maurice Côté

signaturesignature

Clock5 yrs

Hi Maurice,

Sorry for reviving a dead post but I'm was wondering if you have these document now or can you tell me where I can find all the GUID settings for session?

Thanks!

Clock4 yrs

No change yet, the best method is still to create a session with the appropriate information and to export it using "Clipboard - Export". This will list all of the fields.



Maurice Côté

signaturesignature

Clock4 yrs