Overview of Devolutions PowerShell
Devolutions products fully integrate Microsoft PowerShell, offering powerful scripting and automation capabilities. You can control Devolutions products themselves and, through Remote Desktop Manager, run PowerShell scripts across your environment. With that in mind, here is how PowerShell is used across the Devolutions platform.
Devolutions.PowerShell module
This PowerShell module is used to interact directly with Devolutions products.
Remote Desktop Manager actions
You may define a PowerShell script to run as a batch action against one or more hosts.
Remote Desktop Manager reports
This entry type supports running a PowerShell script to generate a report.
Remote Desktop Manager entry types
Both the PowerShell local and PowerShell remote entry types support running scripts.
Privileged access management (PAM) providers and password propagation
Within Devolutions Server and Devolutions Cloud, PowerShell powers custom PAM providers and password propagation scripts.
Getting started with the Devolutions.PowerShell module
The Devolutions.PowerShell module requires PowerShell 7.4 or later, and is supported on Windows, macOS, and Linux operating systems.
Windows PowerShell or earlier versions of PowerShell 7 are not supported because the module is built from the same core as Remote Desktop Manager, and therefore requires a version of PowerShell using a compatible version of the .NET runtime (.NET 9).
PowerShell Gallery (recommended)
The Devolutions.PowerShell module is available in the PowerShell Gallery and it is the recommended default installation method:
Install-Module Devolutions.PowerShell -ForceSince the PowerShell Gallery is usually a repository marked as untrusted (packages are not curated or reviewed), using -Force is required to avoid the confirmation prompt.
Cloudsmith
As an alternative to the PowerShell Gallery, we offer a Devolutions PowerShell repository hosted by Cloudsmith.
Register the Devolutions PowerShell repository, which can be marked as trusted:
Register-PSRepository -Name 'Devolutions' -SourceLocation 'https://nuget.cloudsmith.io/devolutions/powershell/v2/' -InstallationPolicy TrustedUninstall previous versions of the Devolutions.PowerShell module installed from the PowerShell Gallery:
Uninstall-Module Devolutions.PowerShell -AllVersionsInstall the Devolutions.PowerShell module explicitly from the "Devolutions" repository:
Install-Module Devolutions.PowerShell -Repository DevolutionsConfirm that the installation source repository for the Devolutions.PowerShell module is "Devolutions" and not "PSGallery":
Get-InstalledModule Devolutions.PowerShell | Select-Object -Property Name, Repository Name Repository ---- ---------- Devolutions.PowerShell Devolutions
Offline
If you need to install the Devolutions.PowerShell module on a system with limited or no Internet access, you can do so by following these steps:
Create a new PowerShell repository called "local" in your chosen directory; the example below uses
C:\PSRepo.Download the
.nupkgfile for the Devolutions.PowerShell module using the Download the raw nupkg file button under Manual Download in the PowerShell Gallery. Copy the.nupkgfile to the previously created, local PowerShell repository directory.Uninstall previous versions of the Devolutions.PowerShell module installed from other sources.
Install the Devolutions.PowerShell module explicitly from the
localrepository.Confirm that the installation source for the Devolutions.PowerShell module is
local.
Examples
To quickly get started with some common Devolutions.PowerShell module examples, read on below.
Remote Desktop Manager
Devolutions Server
Devolutions Cloud
Uninstalling the Devolutions.PowerShell module
Uninstall all versions of the Devolutions.PowerShell module:
If the module is installed via Cloudsmith, you may unregister the "Devolutions" repository like so:
Finally, if you have installed the module offline, you may unregister the "local" file-based repository and delete the associated directory (your directory name may be different):
Last updated
Was this helpful?