Take a screenshot using PowerShell.
Command Reference
Full-Screen Screenshot
Add-Type -AssemblyName System.Windows.Forms
$bitmap = [System.Windows.Forms.Screen]::PrimaryScreen
$bounds = $bitmap.Bounds
$screenshot = New-Object System.Drawing.Bitmap($bounds.Width, $bounds.Height)
$graphics = [System.Drawing.Graphics]::FromImage($screenshot)
$graphics.CopyFromScreen($bounds.Location, [System.Drawing.Point]::Empty, $bounds.Size)
$screenshot.Save("$env:TEMP\screenshot_$(Get-Date -Format 'yyyyMMdd_HHmmss').png")
Using Snipping Tool
Start-Process "SnippingTool" "/clip"
Output Specification
- Saved to the user's temporary directory by default
- After the screenshot is complete, inform the user of the save path