Currently browsing tag

screenshot

Take a screenshot with PowerShell

Thanks to Jeremy on StackOverflow (http://stackoverflow.com/questions/2969321/how-can-i-do-a-screen-capture-in-windows-powershell), .NET allows us to take a screenshot programatically: [Reflection.Assembly]::LoadWithPartialName(“System.Drawing”) function screenshot([Drawing.Rectangle]$bounds, $path) { $bmp=New-Object Drawing.Bitmap $bounds.width, …

Scroll to Top