External Project

DesktopManager

Windows desktop automation toolkit with a .NET library, 133 PowerShell cmdlets, CLI, MCP server, and tray app for displays, windows, wallpapers, audio, devices, and workstation profiles.

Stars107
Forks7
Open issues0
PowerShell Gallery downloads578666
Releasev4.8.0
Language: C# Updated: 2026-11-06

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