Project

DesktopManager

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

Stars103
Forks7
Open issues1
PowerShell Gallery downloads576672
ReleaseDesktopManager-PowerShellModule.v4.0.0
Language: C# Updated: 2026-06-18T21:49:06.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