Devolutions.PowerShell core module
The PowerShell module now needs to be downloaded from the PowerShell Gallery. It is no longer included in the Remote Desktop Manager installation package. This also means that there is no need to install Remote Desktop Manager on a machine to run PowerShell scripts: the module is now sufficient.
Installation
Starting with Remote Desktop Manager 2023.1, PowerShell 7.2 or later is required to install the module. For Remote Desktop Manager versions prior to 2023.1, PowerShell 5.1 or later is required.
PowerShell installation
Install-Module -Name Devolutions.PowerShell
Manual installation
On some machines, it may be required to install the module manually. Here are the steps to complete this process:
1. Download the Devolutions.PowerShell module NUPKG file from the PowerShell Gallery. 1. Change the file extension to .zip. 1. Extract the file in C:\Program Files\WindowsPowerShell\Modules\devolutions.powershell\version. 1. Unblock all newly extracted files.
cd c:\program files\WindowsPowerShell\modules\devolutions.powershell\<version>
dir * | unblock-file -verboseMigration of your scripts
Once installed, the only required modification is to remove the Import-Module command from the scripts used with the old Remote Desktop Manager PowerShell module. As the module is now part of the PowerShell modules installed on the computer, it is no longer necessary to import it into the scripts.
Use an override configuration (portable)
By using the cmdlets Get-RDMPowerShellOverride and Set-RDMPowerShellOverride, it is possible to choose another destination folder to save the configuration files or to select a folder different from the one defined by default by the Devolutions.PowerShell module. These commands can also be used to select a folder containing files from an existing Remote Desktop Manager configuration other than the default.
Both properties are optional, and their default values are applied when left empty.
OptionFilePath: the full path to the RemoteDesktopManager.cfg file
Default: %LOCALAPPDATA%\Devolutions\RemoteDesktopManager
RemoteDesktopManagerExecutablePath: for the use of
Start-RDMSessionorStart-RDMProcess
Default: %ProgramFiles%\Devolutions\Remote Desktop Manager\RemoteDesktopManager.exe
Basic troubleshooting
Sometimes, several versions of the PowerShell module may appear to be in use. By typing $env:PSModulePath, you can then browse to these locations to delete the files RemoteDesktopManager and RemoteDesktopManager.PowershellModule to reinstall from fresh (renaming does not prevent the system from scanning and finding the modules in them).
Query PowerShell version and the configuration file in use
Last updated
Was this helpful?