Powershell - Creating Session Groups not working as expected
Merry Christmas!!
I have an existing empty session group called "WEW"
I then do the following;
PS C:\Windows\system32> $session=new-rdmsession -group "WEW" -kind "Group" -Name "Wayne"
PS C:\Windows\system32> $session
Name Group ID Session
---- ----- -- -------
Wayne WEW c9e9981c-7ca8-409d-abdf-a99c6f1a7a16 WEW
PS C:\Windows\system32> set-rdmsession $session
PS C:\Windows\system32> update-rdmui
after doing this the new group does no display in the GUI, when I get-rdmsession for groups, the new group also is not present
Kind regards,
Wayne
New observation:
PS C:\Windows\system32> $session=new-rdmsession -group "WEW\" -kind "Group" -Name "Wayne"
Adding "\" to the group had the following effect
1) the GUI still did not update
2) Get-rdmssession for groups now shows the newly added group
This should work:
$session=new-rdmsession -group "WEW\Wayne" -kind "Group" -Name "Wayne"
You need to repeat "Wayne" in the Group & Name since you are creating a folder, not ideal but for now you will need to do this. I will assign the issue to Oliver to have a look at.
Best regards,
Stéfane Lavergne
Thanks for the update!