Hello everyone,
Since the new update (14.1.3.0) I have a problem with the function : New-RDMRepository
In my script I use this command :
$newrep = New-RDMRepository -Name $client
Set-RDMRepository $newrep
And I have :
Set-RDMRepository : Cannot bind argument to parameter 'Repository' because it is null.
At C:\Users\Geoffrey\source\Git\Ghalan.RDM\checkbox.ps1:154 char:27
+ Set-RDMRepository $newrep
+ ~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-RDMRepository], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,RemoteDesktopManager.PowerShellModule.SetRDMRepositoryCommand
I tested : $newrep = New-RDMRepository -Name "Test" but I have the same mesage.
Thanks for your help
Geoffrey
Hello,
What data source type are you using?
Repository are only available with Advanced Data Sources.
Best regards,
Érica Poirier
Hello,
It's sql server.
Hello,
Thank you for the information.
That is quite strange as I get the same error on a DODB data source but runs perfectly on a SQL or DPS data source.
Could you please check on which data source you are connected using the Get-RDMCurrentDataSource cmdlet?
Best regards,
Érica Poirier
I just see in Windows PwerShell ISE --> WARNING: Your connection is not ready
I use :
$ds = Get-RDMDataSource -Name "Ghalan"
Set-RDMCurrentDataSource -DataSource $ds
Hello,
Are you running PowerShell ISE in the same Windows user profile context as where the Ghalan data source is located?
Best regards,
Érica Poirier
Bonjour,
Oui, j'utilise un script afin que la personne se connecte à la base de donnée avec sa yubikey.
Avec une interface graphique je propose à l'utilisateur de choisir sa base de donnée --> $list = Get-RDMDataSource
Par défaut RDM demande la yubikey.
Puis je lance les commandes pour créer le repository.
Merci,
Geoffrey
Hello,
If you don't mind, I will continue this conversation in English for our community ;)
Thank you for the information about the Yubikey. Not sure if using this 2FA will cause some problems with the repository PowerShell cmdlets. Could you please try the same script on a data source that is not protected with a Yubikey?
In the meantime, I will reopen the ticket and will send you a link to schedule an appointment for a remote session.
Best regards,
Érica Poirier
Hello,
I just remove from the Data Source settings "Force data source 2-factor configuration"
I remove from my user the 2-factor and my script work.
This bug has appeared since the last update
Geoffrey
I active my yubikey a just :
$lists = Get-RDMRepository
$lists[0].name
Console:
WARNING: Your connection is not ready
Cannot index into a null array.
At C:\Users\Geoffrey\Downloads\test_geoffrey.ps1:9 char:1
+ $lists[0].name
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Why I have more information about : WARNING: Your connection is not ready
Hello,
Let me test this behavior using a Yubikey and will let you know my findings about it.
Best regards,
Érica Poirier
Hello,
After testing this behavior, it seems that Get-RDMRepository cmdlet will only returns the repository list when the script will not switch to another data source than the one that is loaded by default when using the RDM PowerShell module.
I have sent a ticket to our engineering department. Then ticket number is RDMW-2133. I will update this thread as soon as a fix will be available.
Best regards,
Érica Poirier
Hello,
Thanks for your help.
For the moment to use my script I have a user that haven't 2 factor.
Geoffrey
Hello,
The issue has been resolved and the fix is available in RDM beta version 2019.1.15.
You can download it here : https://remotedesktopmanager.com/home/download#Beta
If you are connected on a SQL data source, please note that this version requires an upgrade of the SQL database. Please see the following online help page for more information.
https://help.remotedesktopmanager.com/database_upgrade.htm
This RDM version is backward compatible with Devolutions Password Server version 6.1.3.
Best regards,
Érica Poirier