Sign in to follow this  
Followers 0
ashleylewisms

Unknown Username of Bad Password???

6 posts in this topic

Hi All,

I'm having a big problem at the moment with running AutoIT to automate a logon process whereby it will sign me in to multiple PC's all with the same account. Attached is my script, and I have even tried other accounts but when I run the batch file (psexec.exe @ITsuites.txt -c -f (pclogon.exe) the command prompt window states unknown username or bad password, despite the fact that I have triple checked the details and even tried a few other accounts...Have I done something silly???

I have been trying to follow the instructions from here:

http://community.spiceworks.com/how_to/show/2568

myscript.txt

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have I done something silly???

You've answered your own question.

automate a logon process

Check here.

Edited by JohnQSmith

Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Share this post


Link to post
Share on other sites

Sorry, perhaps that was the poorest choice of words. I am wanting to get AutoIT to save my username and password to log into 100+ machines for me, instead of doing it myself 1 by 1. Is this allowed with the software? there's a whole guide on spiceworks, but as for the link you sent me about rules, thanks, I had a good read through and apologize if my question is out of bounds for the software etc.

Share this post


Link to post
Share on other sites

ashleylewisms,

It is not "out of bounds" for the software - you can do what you like with it - but it might be "off limits" for discussion on the forum. ;)

I will let you know when we have come to a decision. Until then I am locking the thread - my apologies in advance if I am being over-cautious. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

This is fine. This is enabling a built-in Windows feature that requires administrative rights to enable.

Anyway, this question isn't really AutoIt related. It's about getting psexec to work right which can be annoying and tricky on Vista and later. Otherwise this seems a simple two step process to debug.

  • Does the script work testing it on a local machine?
  • Does psexec work with anything else? If yes, are you positive it's run as the correct user and that the user has the correct access rights?

Share this post


Link to post
Share on other sites

I'm not able to test it on a local machine as it's designed to login to approx 100 PC's from the CTRL+ALT+DEL screen over my network.

As for PSEXEC, How would I go about checking the access rights? I've used PSEXEC for other uses in the past such as Wake-On-Lan and that seems OK...Then again that's not exactly "in windows"

Share this post


Link to post
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
Sign in to follow this  
Followers 0