+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, What am I doing wrong with this mass login script? in Coding and Web Development; I'm trying to create a very simple way of mass logging into a group of machines, for when I teach ...
  1. #1
    jstuttard's Avatar
    Join Date
    Nov 2009
    Location
    Northamptonshire
    Posts
    149
    Thank Post
    8
    Thanked 29 Times in 23 Posts
    Rep Power
    14

    What am I doing wrong with this mass login script?

    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?

  2. #2
    mwbutler's Avatar
    Join Date
    Nov 2010
    Location
    Dorset
    Posts
    235
    Thank Post
    97
    Thanked 20 Times in 17 Posts
    Rep Power
    27
    Error code 0 means that the task completed sucessfully!

  3. #3
    jstuttard's Avatar
    Join Date
    Nov 2009
    Location
    Northamptonshire
    Posts
    149
    Thank Post
    8
    Thanked 29 Times in 23 Posts
    Rep Power
    14
    Ah.

    Nothing happens on the remote computer, so I guess the script can't be used in the way I'm trying to

SHARE:
+ Post New Thread

Similar Threads

  1. DVI-D Problems, what am I doing wrong?
    By mrstephenw in forum Hardware
    Replies: 1
    Last Post: 5th October 2009, 02:19 PM
  2. What am I doing wrong - upload fails
    By speckytecky in forum EduGeek Joomla 1.5 Package
    Replies: 1
    Last Post: 21st May 2009, 02:03 PM
  3. Replies: 2
    Last Post: 13th May 2009, 05:12 PM
  4. What the heck am I doing wrong with my menus?
    By reggiep in forum EduGeek Joomla 1.5 Package
    Replies: 3
    Last Post: 17th June 2008, 10:23 PM
  5. lame mp3 what am I doing wrong
    By russdev in forum Windows
    Replies: 13
    Last Post: 17th May 2006, 09:11 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •