Forum / Remote Desktop Manager - PowerShell Repository

New-RDMSession : Cannot bind positional parameters because no names were given.

  • Create an Issue
  • Cancel

Dear Devolutions,
I try to create a folder in our datasource via powershell, but i can't get it working.
Executing the following powershell command via de RDM cmdlet:
$group = New-RDMSession -Kind "Group" -Name "PasswordPOC"
Set-RDMSession $group
It keeps saying:
New-RDMSession : Cannot bind positional parameters because no names were given.
At line:1 char:10
+ $group = New-RDMSession -Kind "Group" -Name "PasswordPOC"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (smile [New-RDMSession], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousPositionalParameterNoName,RemoteDesktopManager.PowerShellModule.NewRDMSessionCommand
i am logged on as an administrator in the datasource.
Any ideas?
Thanks in advance.

Clock4 yrs

Hi,

In the new PowerShell module, the parameter Kind has been renamed Type.

Ex:

$group = New-RDMSession -Type Group -Name "PasswordPOC"
Set-RDMSession $group -Refresh

Best regards,

Olivier Désalliers

signaturesignature

Clock4 yrs

Yes, This worked! Thanks a lot smile

Clock4 yrs

The documentation is not updated !
This is very confusing. Do you really expect people being able to use the wrongly/undocumented feature ?

https://help.remotedesktopmanager.com/index.html?new-rdmsession.htm

Clock4 yrs

Hello,

The documentation is now online, sorry about the delay.


Best regards,



Maurice Côté

signaturesignature

Clock4 yrs

Thanks for your fast reaction !

Jacques

Clock4 yrs