Jump to content

Remote execution and Run/Send


jpm
 Share

Recommended Posts

I try to use psexec to have a compiled script running on a remote computer using the -i -u administrator -p password.

It looks like the "Send" cannot be accepted by a Job submitted by "Run".

Does somebody have a solution for running such script thru psExec or other remote submitter?

Run("notepad")
sleep(2000)
Send("Hello")

Thanks.

PS Yes I need help too

Link to comment
Share on other sites

I try to use psexec to have a compiled script running on a remote computer using the -i -u administrator -p password.

It looks like the "Send" cannot be accepted by a Job submitted by "Run".

Does somebody have a solution for running such script thru psExec  or other remote submitter?

Run("notepad")
sleep(2000)
Send("Hello")

Thanks.

PS Yes I need help too

<{POST_SNAPBACK}>

I know this doesn't answer your question about Send, but ControlSend works.

Run("notepad")
Sleep(2000)
ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")
Link to comment
Share on other sites

I know this doesn't answer your question about Send, but ControlSend works.

Run("notepad")
Sleep(2000)
ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")

<{POST_SNAPBACK}>

If it works why not. I will check on Monday when I am in a remote environment

Thanks.

What suprise me that there is a difference between Send and ControlSend.

I will report on this difference when I will be able to check.

Link to comment
Share on other sites

I found out that it is working with Send provided you use the Opt("SendAttachMode",1)

Thanks for your help

Every body have to be aware that the Opt() is mandatory to allow Send in a remote script launch by psexec or beyondexec :)

Link to comment
Share on other sites

I was thinking that Opt("SendAttachMode",1) was solving the problem but unde a server Windows 2000 targeting another server Windows 2000 , only ControlSend was efficient.

I need help from advanced developper to understand why "Send" cannot work to send keystrokes to an application launch by "RUN".

Valik, Dave, Jon ... :)

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...