chamach Posted February 17, 2004 Posted February 17, 2004 Hello all of you, Two months ago, I posted a message on the old forum asking how to run AutoIt Scripts remotely. My goal was to use PsExec from SysInternals. My major problem was to find a way to send keys to a window, as PsExec was not able to take the control of the standard input. After some unsuccessful tries, a month ago, I finally "discovered" in the documentation the magic "Controls" commands. Now, my applications (IE6, MDAC, MsOffice, Adobe Reader, Java RunTime, GhostView, RealPlayer, IZarc, Macromedia Flash, IrfanView, PDFCreator...) and Windows patchs can be installed remotely on a NT/2000/XP system, even if a local session is not open ! A remote machine can even be added to a Domain. The only limitation I found by now is in running some applications (IrfanView or Norton Antivirus) as they crash with a Visual C++ error. I think they will never like PsExec... Now as I found a solution to my original problem, I thought it could be interesting to share it... Thanks a lot to all the AutoIt3 developpers ! An "every-day-happier-AutoIt3-user" ! Cervélo Soloist 2004 & Cervélo P3C 2007
autoguy100 Posted May 11, 2006 Posted May 11, 2006 Hello all of you, Two months ago, I posted a message on the old forum asking how to run AutoIt Scripts remotely. My goal was to use PsExec from SysInternals. My major problem was to find a way to send keys to a window, as PsExec was not able to take the control of the standard input. After some unsuccessful tries, a month ago, I finally "discovered" in the documentation the magic "Controls" commands. Now, my applications (IE6, MDAC, MsOffice, Adobe Reader, Java RunTime, GhostView, RealPlayer, IZarc, Macromedia Flash, IrfanView, PDFCreator...) and Windows patchs can be installed remotely on a NT/2000/XP system, even if a local session is not open ! A remote machine can even be added to a Domain. The only limitation I found by now is in running some applications (IrfanView or Norton Antivirus) as they crash with a Visual C++ error. I think they will never like PsExec... Now as I found a solution to my original problem, I thought it could be interesting to share it... Thanks a lot to all the AutoIt3 developpers ! An "every-day-happier-AutoIt3-user" ! hi,I am trying to do the samething but the problem is unless console is open the scripts fail to run, Do you think Controls commands can be used always in the scripts?For example this script can not be changed with control commandsRun("notepad.exe")WinWaitActive("Untitled - Notepad")Send("This is some text.")WinClose("Untitled - Notepad")WinWaitActive("Notepad", "The text in the Untitled file has changed")Send("!y")WinWaitActive("Save As","")send("simple.txt")send("!s")Let me know if you have any other thoughts on this.
ode Posted May 29, 2006 Posted May 29, 2006 Hello Chamach,I got the same problem with a java application ... Send keys and MouseMove don't work with psexec. What is your solution please? or where may I find it?ThanksOdeHello all of you, Two months ago, I posted a message on the old forum asking how to run AutoIt Scripts remotely. My goal was to use PsExec from SysInternals. My major problem was to find a way to send keys to a window, as PsExec was not able to take the control of the standard input. After some unsuccessful tries, a month ago, I finally "discovered" in the documentation the magic "Controls" commands. Now, my applications (IE6, MDAC, MsOffice, Adobe Reader, Java RunTime, GhostView, RealPlayer, IZarc, Macromedia Flash, IrfanView, PDFCreator...) and Windows patchs can be installed remotely on a NT/2000/XP system, even if a local session is not open ! A remote machine can even be added to a Domain. The only limitation I found by now is in running some applications (IrfanView or Norton Antivirus) as they crash with a Visual C++ error. I think they will never like PsExec... Now as I found a solution to my original problem, I thought it could be interesting to share it... Thanks a lot to all the AutoIt3 developpers ! An "every-day-happier-AutoIt3-user" !
ode Posted May 29, 2006 Posted May 29, 2006 It does'nt work with PsExec v1.56, but with PsExec v1.71 it's OK!
LarryB Posted May 30, 2006 Posted May 30, 2006 So let me make sure I am understanding this correctly. Basically you guys are saying that with PsExec v1.71 that you are having luck in running programs remotely that require button clicks with out a local session being logged on.
buffics Posted May 30, 2006 Posted May 30, 2006 I was running an old psexec and I was getting the same problems. Once I read that I should use a newer version, everything magically worked! So this is confirmation that PsExec v1.71 does work with sendkeys. This is also confirmation that PsExec v1.55 does NOT work with sendkeys.
vamsireddy Posted March 13, 2008 Posted March 13, 2008 Hello all of you, Two months ago, I posted a message on the old forum asking how to run AutoIt Scripts remotely. My goal was to use PsExec from SysInternals. My major problem was to find a way to send keys to a window, as PsExec was not able to take the control of the standard input. After some unsuccessful tries, a month ago, I finally "discovered" in the documentation the magic "Controls" commands. Now, my applications (IE6, MDAC, MsOffice, Adobe Reader, Java RunTime, GhostView, RealPlayer, IZarc, Macromedia Flash, IrfanView, PDFCreator...) and Windows patchs can be installed remotely on a NT/2000/XP system, even if a local session is not open ! A remote machine can even be added to a Domain. The only limitation I found by now is in running some applications (IrfanView or Norton Antivirus) as they crash with a Visual C++ error. I think they will never like PsExec... Now as I found a solution to my original problem, I thought it could be interesting to share it... Thanks a lot to all the AutoIt3 developpers ! An "every-day-happier-AutoIt3-user" ! Hi, Can you please send me sample commands on how to run autoit files remotely using PsExec.I mean syntax Thanks in advancevamsi
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now