For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Integration
Purpose
Reference

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.

The Devolutions.PowerShell module is available in the PowerShell Gallery and it is the recommended default installation method:

Install-Module Devolutions.PowerShell -Force

Since 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.

  1. Register the Devolutions PowerShell repository, which can be marked as trusted:

    Register-PSRepository -Name 'Devolutions' -SourceLocation 'https://nuget.cloudsmith.io/devolutions/powershell/v2/' -InstallationPolicy Trusted
  2. Uninstall previous versions of the Devolutions.PowerShell module installed from the PowerShell Gallery:

    Uninstall-Module Devolutions.PowerShell -AllVersions
  3. Install the Devolutions.PowerShell module explicitly from the "Devolutions" repository:

    Install-Module Devolutions.PowerShell -Repository Devolutions
  4. Confirm 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

Since the Devolutions.PowerShell module is available in more than one registered repository, the -Repository parameter becomes mandatory. However, if you've marked the "Devolutions" repository as trusted, -Force is unnecessary to avoid the confirmation prompt.

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:

  1. Create a new PowerShell repository called "local" in your chosen directory; the example below uses C:\PSRepo.

  2. Download the .nupkg file for the Devolutions.PowerShell module using the Download the raw nupkg file button under Manual Download in the PowerShell Gallery. Copy the .nupkg file to the previously created, local PowerShell repository directory.

  3. Uninstall previous versions of the Devolutions.PowerShell module installed from other sources.

  4. Install the Devolutions.PowerShell module explicitly from the local repository.

  5. Confirm that the installation source for the Devolutions.PowerShell module is local.

Alternatively, a directory on a network share can be used instead of a local directory, making it easier to distribute the PowerShell module on a local network.

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?