Project

DesktopManager

DesktopManager is a C# library and PowerShell module that allows to get and set wallpapers to given monitor.

Stars51
Forks6
Open issues0
PowerShell Gallery downloads526029
ReleaseDesktopManager-v3.6.1
Language: C# Updated: 2026-04-10T11:43:34.0000000+00:00

Curated Examples

Inspect connected monitors

Use DesktopManager to read monitor information from the current Windows session.

This pattern is useful before changing display layout, brightness, or window placement.

It is adapted from Examples/GetDesktopMonitors.ps1.

Example

Import-Module DesktopManager

$allMonitors = Get-DesktopMonitor
$allMonitors | Format-Table

$connected = Get-DesktopMonitor -ConnectedOnly
$connected | Format-Table

$primary = Get-DesktopMonitor -PrimaryOnly
$primary | Format-List *

What this demonstrates

  • reading monitor state before making changes
  • narrowing to connected or primary monitors
  • reviewing monitor details in table or list form

Source