When i start the RDM Powershell from within RemoteDesktokManager i am not able to call New-RDMUser anymore. When i do so i get this error:
PS C:\Program Files (x86)\Devolutions\Remote Desktop Manager> $user = New-RDMUser -Name 'test'
New-RDMUser : Object reference not set to an instance of an object.
At line:1 char:9
+ $user = New-RDMUser -Name 'test'
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-RDMUser], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Devolutions.RemoteDesktopManager.Business.PS.Commands.NewRDMUserCommand
This is the environment:
RDM Version is 11.0.18.0
RDM is started as Administrator
it seems that the call syntax has changed. whe i use:
$user = New-RDMUser testusername testfirstname
it works. But it is necessary to give the firstname as parameter
is this by intention or a bug because the syntax doesnot match the documentation
Thank you for the info, we are investigating.
Stéfane Lavergne
Fixed, a new beta build should be out shortly (next few hours)
Stéfane Lavergne
The official release is available v11.1.0.0
Stéfane Lavergne
New-RDMUser is not working AGAIN
$user = New-RDMUser -Name "New SecurityGroup"
New-RDMUser : Es wurde kein Parameter gefunden, der dem Parameternamen "Name" entspricht.
In Zeile:1 Zeichen:21
+ $user = New-RDMUser -Name "New SecurityGroup"
+ ~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-RDMUser], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,RemoteDesktopManager.PowerShellModule.NewRDMUserCommand
Please help!!
My Version is 13.0.6
Hi,
The way New-RDMUser works has changed in the module to be more conform to the data source currently used and similar to what is shown when you create a new user using the GUI in RDM.
For example, let's create a user in a SQL Server Data source using New-RDMUSer cmdlet. $user = New-RDMUser -AuthentificationType SqlServer -Login "PSTest" -Password (ConvertTo-SecureString -String 'password' -AsPlainText -Force) -SetUser
The cmdlet now has a parameter named authentificationType. Just like in the GUI the parameter is used to select the user's authentification type.
As you have noticed the parameter name doesn't exist anymore and has been replaced by Login in the case that you create a user in a SQL Server Data source. Like said previously, it was changed to reflect the Login field in GUI.
The SetUser parameter is a optional parameter that you can use to save the user in the data source without having to use Set-RDMUser afterwards.
We will make sure to update the help to reflect these changes.
Best regards,
Olivier Désalliers
Could you please update the documentation and the help of the commandlet
Greetings,
Franz
Hi,
Yes, we will update the documentation and help of the cmdlet.
Best regards,
Olivier Désalliers