Guest Guest Posted October 5, 2011 Posted October 5, 2011 I'm trying to create a very simple way of mass logging into a group of machines, for when I teach our reception class. I've found a VBS Script which looks like it'll do the job, I've copied the vbs file to the remote machine and I've got psexec working, but I get this error when I test it: c:\windows\system32\cscript exited on ICT-01 with error code 0 My Psexec command is below: psexec \\ICT-01 -s -e c:\windows\system32\cscript C:\admin\login.vbs and the conents of the login.vbs is: set wshShell = WScript.CreateObject("WSCript.shell") wshShell.sendkeys "testpupil" wscript.sleep 1000 wshShell.sendkeys "{Tab}" wscript.sleep 1000 wshShell.sendkeys "testpassword" wscript.sleep 1000 wshShell.sendkeys "{ENTER}" WScript.Quit What am I doing wrong?
mwbutler Posted October 5, 2011 Posted October 5, 2011 Error code 0 means that the task completed sucessfully!
Guest Guest Posted October 5, 2011 Posted October 5, 2011 Ah. Nothing happens on the remote computer, so I guess the script can't be used in the way I'm trying to
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