Jump to content

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("", "")

$hGUI=WinGetHandle($title)

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

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

Thanks.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...