rahuroy 0 Posted March 24, 2011 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("", "") $hGUI=WinGetHandle($title) $file=@ScriptDir & "\ "& $testcase &" "& @MON & @MDAY & @YEAR & @HOUR & @MIN & @SEC & ".jpg" _ScreenCapture_CaptureWnd ($file,$hGUI,0, 0, 300, 400, 0) Thanks. Share this post Link to post Share on other sites