# Capture desktop screenshots

Capture desktop screenshots on Evotec with practical examples, usage guidance, and reusable project workflows.

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.

[View on GitHub](https://github.com/EvotecIT/DesktopManager) [Product page](/products/desktopmanager/) [Visit Website](https://powerbginfo.com/desktopmanager/) [Releases](https://github.com/EvotecIT/DesktopManager/releases) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/DesktopManager)

Stars**108**

Forks**6**

Open issues**0**

PowerShell Gallery downloads**579311**

Release**v4.9.1**

Language: C# Updated: 2026-11-23

Curated Examples

Use DesktopManager to capture desktop screenshots into a script-local output folder.

This pattern is useful for troubleshooting display state or collecting visual evidence during automation.

It is adapted from `Examples/GetDesktopScreenshot.ps1`.

## Example

```powershell
Import-Module DesktopManager

$outputPath = Join-Path $PSScriptRoot 'Output'
New-Item -ItemType Directory -Path $outputPath -Force | Out-Null

Invoke-DesktopScreenshot -Path (Join-Path $outputPath 'DesktopScreenshot.png')
Invoke-DesktopScreenshot -Path (Join-Path $outputPath 'PrimaryMonitor.png') -Index 0
Invoke-DesktopScreenshot -Path (Join-Path $outputPath 'Region.png') -Left 100 -Top 100 -Width 800 -Height 600
```

## What this demonstrates

- capturing full desktop output
- targeting a specific monitor by index
- capturing a defined screen region

## Source

- [GetDesktopScreenshot.ps1](https://github.com/EvotecIT/DesktopManager/blob/v2-speedygonzales/Examples/GetDesktopScreenshot.ps1)

<!-- PowerForge markdown artifact sha256:55689C8492158220075C6B0ADD6795EB03CD31C00529B8D16DA503F7CFB8E00E -->
