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.
I tried creating a file on the remote machine located at
"C:\Script\SendEnter.vbs" to try and run remotely because i understand
it is not possibly to sendkeys remotely but I cant seem to launch it.
I was also thinking about dynamically creating script and running it on
the the remote but I can't seem to get an application to run
interactively on a remote machine either.
this code works. On the remote machine, a "notepade.exe" process is
running but there is no visible notepad to interact with. So I was
unable to run a vbs file to send the Enter Key using this approach.
strComputer = "RmoteMachine"
Set objReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\CIMV2:Win32_Process")
result = objReg.Create ("notepad.exe", null, null,procID)
I have also tried the following which returns an activeX object error.
set oController = CreateObject("WSHController")
set oProcess = oController.CreateScript ("C:\Script\SendEnter.vbs",
strComputer)
oProcess.Execute
While oProcess.Status <> 2
WScript.Sleep 100
WEnd
WScript.Echo "Done"
All I would like to do is send an ENTER key to an active popup window
on a remote machine during a login.
Thanks for your assistance.