I have a powershell script that I've used for the past few years to create new sessions, but today it's returning:
WARNING: No template group found with the id 8f04f52a-b976-44c8-b819-3996b1d6f2f5
Set-RDMSession : Cannot bind argument to parameter 'Session' because it is null.
At C:\Program Files (x86)\Devolutions\Remote Desktop Manager\updateApplianceSessions.ps1:47 char:18
+ Set-RDMSession $session;
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-RDMSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
This is caused by this line in the script:
$session = New-RDMSession -Name $app.name -Group ("Customers\" + $app.customer) -TemplateID "8f04f52a-b976-44c8-b819-3996b1d6f2f5" -Type "TemplateGroup" -SetSession;
I take it that if someone made an update to the template the guid changes?
What is the command I can run to get templates and list their name to IDs?
There used to be a good docs section that listed all the available commands, but I cannot find it anymore, there seems to be a new page which lacks much info https://help.remotedesktopmanager.com/powershell_cmdlets.html
I have already gone to File->templates but cannot open edit on the one I believe it's supposed to use, that is grayed out
Hello,
You can get the Template ID with the Get-RDMTemplate cmdlet. Then you will get the template list with all IDs.
Usually, the template Id should not change. Which template type are you trying to edit? Is it a template group that contains folders? If so, those templates cannot be edited.
To get the whole list of RDM PowerShell cmdlets, you can use the get-command cmdlet like the following. Then use get-help with the appropriate RDM cmdlet name for further details.
Get-Command -Module RemoteDesktopManager.PowerShellModule Get-Help Get-RDMTemplate
Best regards,
Érica Poirier
thanks, that's exactly the command I was looking for!