Online Help > Support/Resources > Troubleshooting

Powershell

Error

 

When running PowerShell (RDM CmdLet) after deploying Remote Desktop Manager from the .zip file, you might see an error message like the following:

 

Exception occurred while initializing the installation:

System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Tools\Devolutions\RDM\RDM For Phone Support\RemoteDesktopManager.PowerShell.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).

 

Error Message

Error Message

 

Solution

You must unblock RemoteDesktopManager.PowerShell.dll & RemoteDesktopManager.Core.XmlSerializers.dll. The 2 files are located in the installation folder of Remote Desktop Manager. Right-click on RemoteDesktopManager.PowerShell.dll & RemoteDesktopManager.Core.XmlSerializers.dll and select Properties. In the Properties windows, click on Unblock.

 

Properties Of RemoteDesktopManager.PowerShell.dll

Properties Of RemoteDesktopManager.PowerShell.dll

 

Error

 

Cannot load Windows PowerShell snap-in Remote.Desktop.Manager.10.0.4 because of the following error: Could not load file or assembly 'file:///C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

 

Solution

PowerShell v.4.0 need to be installed.

 

To get your PowerShell version, execute the following command: $PSVersionTable.

 

Error

 

None of the Powershell cmdlets in Remote Desktop Manager work after an update, even if they were running correctly prior to the update.

 

Solution

The first step is to check how many versions of the RDM snap-in are currently installed on the computer. Just type this command in Powershell (RDM CmdLet) :

 

Get-PSSnapin -name Remote.Desktop.Manager.*

 

Get-PSSnapin commandlet

Get-PSSnapin commandlet

 

If there are more than one version of the snap-in installed, the result of the command will list them like this :

 

List of all versions of the RDM snap-in

List of all versions of the RDM snap-in

 

To remove snap-ins that do not match with the actual version of Remote Desktop Manager installed on the computer, use the Remove-PSSnapin cmdlet, ensure you specify the specific version to remove.

 

Removing the undesired RDM snap-in

Removing the undesired RDM snap-in

 

Finally, verify if only the snap-in of the current version of RDM is installed with the Get-PSSnapin command.

 

List of all versions of the RDM snap-in

List of all versions of the RDM snap-in

 

"Cannot be loaded because running scripts is disabled on this system."

There are 2 probable causes.

 

1. This is a Windows Security Policy.

 

You must run the command below (Run as Administrator first);

 

Set-ExecutionPolicy

 

More Information can be found here;

https://technet.microsoft.com/en-us/library/ee176961.aspx

 

2. Open Remote Desktop Manager as Administrator and open the Powershell module and run;

 

Set-ExecutionPolicy