Powershell cmdlets and Portable installation

Powershell cmdlets and Portable installation

avatar

Hi,
I have all my RDM insallatin portable (overrride.cfg) and everything set to relative path.
When i open a normal powershell (NOT inside RDM) i get this error:

Get-PSSnapin Remote.Desktop.Manager.10.9.4| Add-PSSnapin
Get-RDM-Session
WARNING: The PowerShell CmdLet feature is only available in the Enterprise Edition!

Get-RDM-Session : Object reference not set to an instance of an object./

Capture_2015-06-25_14-03-30.png

All Comments (7)

avatar

Hello,

Do you have multiple RDM libraries registered?

I have multiple RDMs on my machine and I have a set of scripts to unregister/register our library as I switch contexts.

Switching to a module is on our todo list, it should alleviate these problems.

Best Regards,

Maurice

avatar

Hi Peter,

I'm only able to reproduce your error if I use a key that is not valid anymore or the trial ended.

Did you register the SnapIn and how did you register it?

After you registered the snapin. Can you check in "HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns" the ModuleName of the key Remote.Desktop.Manager.10.9.4 (it tells where is the powershell dll) and open Remote Desktop Manager at the path where is the PowerShell dll.

In Remote Desktop Manager, where the PowerShell dll is, can you check in Help -> Register Version if you are in Enterprise Edition.

Also, what is in your override.cfg?

Best regards,

Olivier Désalliers

avatar

I found the source of the problem, but i have no solution yet:
It happens when i start a Powershell elevated (Shortcut property- Advanced: Running as Administrator)

avatar

I'm getting the same error when trying to add a security group using New-RDMSecurityGroup. I did have this working at one point and then it stopped working. I'm not really sure what happened between those two times.

avatar

Ping!

avatar

Hi Peter,

if you start ps elevated your current path gets set to %systemroot%\system32
are you aware of that in use with your scripts?

regards
markus

Kind Regards
Markus

======================

avatar

Hi Markus,
This is not relevant for my problem. It uses the Override.cfg to configure a portable config. It creates these folders as normal or elevated User
..\RemoteDesktopManager\data\<User>\Images\Themes"
The Problem is, that RDM hangs forever in "Connecting to Database"
edited by Peter Cermak (POI) on 8/30/2015