I am tryin to create a script to bulk add users and want to check current users for fields. However No commands I execute in Powershell seem to work with RDM. they all output "Warning: Your connection is not ready"
PS H:\> Get-RDMCurrentDataSource
ID : <ID Deleted>
IsConnected : False
IsOffline : False
Name : RDM_DB
Type : SQLServer
PS H:\> if(-not (Get-Module RemoteDesktopManager -ListAvailable)){
Install-Module RemoteDesktopManager -Scope CurrentUser
}
# Adapt the data source name
$ds = Get-RDMDataSource -Name "RDM_DB"
Set-RDMCurrentDataSource $ds
Update-RDMUI
$users = get-rdmuser
WARNING: Your connection is not ready
Hi,
There are multiple reasons that could explain why your SQL Server data source isn't connecting.
Did you create the data source in PowerShell? If you did, PowerShell might not be registered. You can run Get-RDMDiagnostic to check problems with license.
Do you already have RDM installed on your workstation but none of your configured data sources showed up in PowerShell? If so, RDM and PowerShell might not be looking at the same cfg file. To validate, run Get-RDMInstance and make sure the OptionFile path matches with RDM (you can find that path in RDM's Options -> Advanced)
If they are different, you can point PowerShell to the right cfg with an override.
$or = Get-RDMPowerShellOverride $or.OptionFilePath = "same/path/as/rdm/RemoteDesktopManager.cfg" Set-RDMPowerShellOverride
Restart your PowerShell instance.
Otherwise, if you simply want to register your serial in PowerShell, you can do so like this
$reg = Get-RDMRegistrationInfo $reg.Name = "name" $reg.Email = "email" $reg.Serial = "serial" Set-RDMRegistrationInfo $reg
If your serial is stored in your SQL data source you can register PowerShell like this instead
$ds = Get-RDMDataSource -Name "your sql data source" Register-RDMFromDataSource $ds
Let me know if this solves your issue.
Jonathan Lafontaine