r/PowerShell • u/hondybadger • Feb 16 '26
snipping tool arguments
I don't think this is an option but figure i'll ask experts here if it is possible to use command line arguments to open snipping tool and begin a screen recording or take full screen capture. A batch shortcut or something to initiate this with a single button click would be ideal.
You can launch snippingtool.exe but beyond that it very limited with no arguments to begin a task.
0
Upvotes
8
u/BlackV Feb 16 '26 edited Feb 16 '26
non of this is powershell
but the snipping tool shortcut is
Win+Shift+sorPrntScrbut that does not really cover off the "batch" part of your questionhave you looked at
snippingtool.exe /?a 2 second google took me here
I cant think of a real reason you'd be want to programmatically call it, if that was the case I'd be looking at the
system.drawingclass for grabbing screen contents2
u/robwe2 Feb 16 '26
Maybe sendkeys to push printscreen?
4
u/[deleted] Feb 16 '26
We call that spyware.
There’s a reason apple triple checks before enabling screen recoding.
1
u/robwe2 Feb 16 '26
Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing
$Screen = [System.Windows.Forms.SystemInformation]::VirtualScreen $Bitmap = New-Object System.Drawing.Bitmap $Screen.Width, $Screen.Height $Graphics = [System.Drawing.Graphics]::FromImage($Bitmap) $Graphics.CopyFromScreen($Screen.Left, $Screen.Top, 0, 0, $Bitmap.Size)
$File = "$env:USERPROFILE\Desktop\screenshot.png" $Bitmap.Save($File, [System.Drawing.Imaging.ImageFormat]::Png)
$Graphics.Dispose() $Bitmap.Dispose()
Write-Host "Screenshot saved to $File"
1
u/OakenRage Feb 16 '26
I can't help with the PowerShell portion but something I use at the enterprise level is a tool called Snag It. It's one of the few programs I use at work and love souch I bought for personal use.
1
u/Dense-Term7324 Feb 17 '26
A DM?
1
u/steviefaux Feb 21 '26
You could use systinternals zoomit instead. Mark added full screen recording for that a while ago. And I believe you can start it via commandline.
1
u/cracc_babyy Feb 16 '26
Rubber ducky payload
1
u/Ok-Entrepreneur-5358 Feb 17 '26
try this also:
https://support.microsoft.com/en-us/windows/steps-recorder-deprecation-a64888d7-8482-4965-8ce3-25fb004e975f
1
u/Dense-Term7324 Feb 17 '26
Is that a yes?