Forum Discussion
What is the best screenshot tool for pc on Windows 11/10?
Recommend the "Windows PowerShell/CMD" method if you take screenshots quite often on Windows PC. Especially if you want a quick, automated way to capture your screen without relying on third-party software. However, it's important to note that neither PowerShell nor CMD has a built-in command specifically for taking screenshots directly. Instead, you can leverage scripting together with Windows utilities or third-party tools to create a screenshot tool for PC via command line.
1. Quick Screen Capture to Clipboard: Open PowerShell and run:
powershell
Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('%{PrtSc}')
This simulates pressing Alt + PrtScn (captures active window) directly into the clipboard.
2. Save Screenshot Directly to File (More Powerful): Use .NET classes in PowerShell. Save this as a script (e.g., capture.ps1):
powershell
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing
$screen = [System.Windows.Forms.Screen]::PrimaryScreen.Bounds
$bitmap = New-Object System.Drawing.Bitmap $screen.Width, $screen.Height
$graphics = [System.Drawing.Graphics]::FromImage($bitmap)
$graphics.CopyFromScreen($screen.Location, [System.Drawing.Point]::Empty, $screen.Size)
$graphics.Dispose()
$timestamp = Get-Date -Format "yyyyMMdd-HHmmss"
$filePath = "$env:USERPROFILE\Desktop\Screenshot-$timestamp.png"
$bitmap.Save($filePath, [System.Drawing.Imaging.ImageFormat]::Png)
$bitmap.Dispose()
Write-Output "Saved to $filePath"
Run it as a screenshot tool for PC, and it saves a timestamped full-screen PNG directly to your desktop—no UI, no prompts.