Due to the fact that RDM is limited (Microsoft limitation from what I understand) from being able to embed elevated consoles if it is not elevated itself (which causes its own set of problems ) I would like to be able to more easily install the RDM powershell module/add the powershell module. Right now, I have to install it by accessing the path to the DLL correctly, which is fairly non-intuitive. Other 3rd party snapins install themselves to be called much more easily - for example:
add-pssnapin -name citrix.xenapp.command
add-pssnapin -name vmware*
That's much easier then trying to identify the path.
When you use the name only, the module needs to be in a module directory. For examples:
C:\Program Files (x86)\WindowsPowerShell\Modules
The reason why our module can't be there is because the module has dll dependencies that are in the RDM application folder.
As a workaround, you could unzip and add the folder that I attached in this post to one of your module path (Ex: C:\Windows\System32\WindowsPowerShell\v1.0\Modules). You can find them by using $env:PSModulePath.
There are two files in the folder. In the file RemoteDesktopManager.PowerShellModule.psm1, you need to write the path to the RemoteDesktopManager.PowerShellModule.dll or RemoteDesktopManager.PowerShellModule.psd1 where RDM is installed if you didn't install RDM at the default location.
Then you will be able to import the module that way:
Import-Module -Name RemoteDesktopManager.PowerShellModule