powershell -Command "Add-Type -AssemblyName System.Windows.Forms; Add-Type -AssemblyName System.Drawing; $screen = [System.Windows.Forms.SystemInformation]::VirtualScreen; $bmp = New-Object System.Drawing.Bitmap $screen.Width, $screen.Height; $g = [System.Drawing.Graphics]::FromImage($bmp); $g.CopyFromScreen($screen.X, $screen.Y, 0, 0, $bmp.Size); $bmp.Save('%USERPROFILE%\Desktop\screenshot.png'); $g.Dispose(); $bmp.Dispose()" # Open Snipping Tool in region-select mode snippingtool /clip Or (Windows 11/10 newer versions) start ms-screenclip: c) Simulate Print Screen Key via Script Using a Visual Basic Script (save as printscreen.vbs and run via cscript or wscript ):
The "Print Screen" (PrtScn) functionality in Windows is not a single command-line executable but rather a system-wide keyboard interrupt. However, you can control screenshot behavior, save files, and automate captures using built-in Windows commands ( powershell , snippingtool , start ) and shortcuts. 1. Native Keyboard Commands (No Software) These are the most direct "commands" triggered by keys: print screen windows command
Set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys "PRTSC" Run with: powershell -Command "Add-Type -AssemblyName System