Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send enter key to remote computer

Status
Not open for further replies.

clu63

Programmer
Mar 8, 2006
4
I need to send an enter key to a remote computer. I would prefer not having a vbscript on the remote if possible. I understand there are a few ways of doing this so any and all suggestion are welcome. I am running windows xp and need vbs code to sendkey ENTER to 50 computers on a network.
 
If the reason you don't want 50 scripts on remot machine is the manual process of running around and starting them, then one option would be to build one sendkey script and one script to loop through a list of machines and execute a psexec with the sendkey script.
As long as you have admin access to the box you shouldn't have any problems (except with MS Antispyware and maybe one or two others which would give you script execution problems anyways).
It still qualifies as puting a script on the remote machine, but that would be scripted to, so no manual steps invovled except kicking off the first script. Plus you can have a lot of fun snding scripts to your workmates that turn on the caps lock every few minutes :)

 
you could use WMI to run a remote thread on a box.
this remote thread might be able to be a unc path to a script help on a central server, this script then does your sendkeys....never tried it myself
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top