Jump to content
Sign in to follow this  

Is it Possible to take Screen Capture of remote machine when session is not active?

Recommended Posts


I have written scripts for installation on remote machine and whenever there are failures i am capturing screenshot.I am invoking au3 scripts using psexec but if machine session is not active then screeen capture coming as blank , for successful screen capture , is it mandatory for session to be active?

How to achieve taking of screenshots of remote machine when session is not active?

snippet of code i am using

$title = WinGetTitle("", "")

$text = WinGetText("", "")


$file=@ScriptDir & "\ "& $testcase &" "& @MON & @MDAY & @YEAR & @HOUR & @MIN & @SEC & ".jpg"

_ScreenCapture_CaptureWnd ($file,$hGUI,0, 0, 300, 400, 0)


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.