I get the below error when trying to Invoke-RDMLoadFromInventorySession from Powershell Admin.
RDM.load.inventory.ps1$Sessions = Get-RDMSession | where {$_.ConnectionType -eq "RDPConfigured"}foreach ($Session in $Sessions){ Invoke-RDMLoadFromInventorySession $session Set-RDMSession $session -Refresh}Update-RDMUI
RDM.import.module.ps1############################################################################# This script will load the module from the default installation path############################################################################Import-Module "C:\Users\brownhe\AppData\Roaming\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"<# The Get-RDMInstance is useful to confirm not only which instance you are connected to in the case where you run multiple RDM's side by side, but it also returns the path of the configuration file that is loaded. This is useful if you are running in a virtualized environment, or if you have overriden the default path.#>Get-RDMInstance<# The Get-RDMCurrentDataSource returns the currently selected datasource. This may vary depending on the use having specified a "default" datasource, having the last used datasource selected at startup, and so on.#>Get-RDMCurrentDataSource <# For advanced datasources, there is an additional level subdividing your information, namely Vaults. If your current datasource does not support Vaults, you will simply see a warming message#>Get-RDMCurrentVault
The only thing that I can think that would be causing the problem is that I installed it to "C:\Users\brownhe\AppData\Roaming\Devolutions\Remote Desktop Manager" instead of "Program Files" because this is a shared server so I only wanted it installed for my user, not for everyone. Let me know if that is the incorrect path or way to accomplish that.
Server Info:
System Model: ProLiant DL360 Gen9
OS: Windows Server 2012 R2
Installed Physical Memory (RAM): 1024GB (1TB)
Hard Drives: 4TB NVMe SSD System Drive
Hard Drives: 4x10TB SATA DATA Drives
Processor: DUAL 2x Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz, 2397 Mhz, 6 Core(s), 12 Logical Processor(s)
Hello,
When you import the module from Program Files, Powershell will use the connected user's profile to load data sources configuratiion. Technically, it should not be a problem to use "Program Files(x86)\Devolutions\Remote Desktop Manager\" powershell module...
If you try it from the RDM UI, is it working as expected? (From a RDM Property windows -> Assets -> Load From Inventory)
Thanks for keeping us posted!
Best regards,
Alex Belisle
Question: Has this command been removed from more recent Powershell Modules? Invoke-RDMLoadFromInventorySession is not present in the last few releases of the 2021.2.0.x branch I have been using. (Currently on 2021.2.0.25)
Thanks.
You are absolutely right. Let me fix that right away.
Jonathan Lafontaine
@angelfreire Version 2021.2.0.26 adds back Invoke-RDMLoadFromInventorySession.
Jonathan Lafontaine
Just updated and verified. Many thanks!