Powershell Module

avatar
marg
Disabled

Hello there,

as there's not too much action in the german support forum, i will try it here...

I am testing version 13.6.5.0 in our environment. We deploy the program files / config from the downloadable .zip-file. Everything works fine, but i'm struggling to get the Powershell module working.

If i am right, the module will be installed when i run the .exe to install RDM. But how can i do that manually if i deploy the files from the .zip-file?

I tried "Install-Module -name "C:\Program Files(x86)\RDManager\RemoteDesktopManager.PowershellModule.dll", but that needs a nuget repositry and that download is blocked at our gateway.
Is there any other way to get this running?

Thanks in advance,
Greg

All Comments (8)

avatar

Hello,

Sorry that you didn't receive any response from our German support channel. I will verify with them what happen.

Regarding your issue, I have assigned it to one of my colleague. We will respond you shortly.

Best regards,

Jeff Dagenais

avatar

Hello,

To load the RDM PowerShell module, there is no need to install it first. Just adapt the path of the following command to load the module from where you unzip the RDM installation package. This command must be executed at the beginning of each script you run that needs to have access to RDM PowerShell cmdlets. And it is preferable to load the .psd1 file instead of the .dll.

Import-Module "${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"
Best regards,

Érica Poirier

avatar

Hi,

i tried this before, but i get the following error message:










Translated: File or assembly (filepath) or a dependence of it could not be found. The process is not supported.

avatar

Hello,

Thank you for the error message.

Is it possible that this file is locked or the user doesn't have enough permission to use this file?

Could you please try the following command on the folder where RDM is located to see if this will help?

dir "*" | Unblock-File -verbose;


Best regards,

Érica Poirier

avatar

Hey,

thanks for the tip. After the unblock-file command it worked with the local administrator, but still not with the non-administrator privileged domain user.

Is it not possible for a non-administrator user to get the powershell module working?

Best regards

avatar

Hello,

Glad that it's working for the local administrator account.

For the non-administrator domain account, have you tried to assign permissions for domain accounts on the folder in which RDM is located? Because if you have only unzipped the content of the installer manually under Program Files (x86), maybe the permissions to use and run files aren't enough for standard domain accounts under that folder.

Best regards,

Érica Poirier

avatar

Hello Erica,

thanks for your help. Looks like it's working now. I tried a few installations and it's looking fine now.
I will now use the unblock-file command in the initial script (runs with administrator privileges) after the copy process, just to be safe. Users have Read&execute, List folder contents and Read permissions.

Best regards

avatar

Hello,

Thank you for your feedback and glad that you have successfully fix the issue and that it's working now.

Best regards,

Érica Poirier