hurtsmyhead
Technical User
- Jun 3, 2010
- 8
Hi all,
I am a rank newbie, I know next to nothing about VBS but I have a dire need. I have 1600 servers for which I need to know if I can map to them using each of five different user accounts.
So, I need a script to suck in server names from a text file and try to map to \\servername\c$ using five different user accounts. It would be best if it stops trying after it finds a user account that works.
The results would be output to a text file, just something like this:
"Success <servername> with <user account name>"
If none of the accounts work then if possible I'd like it to echo that to the same output file, something like:
"Failure logging into <servername>"
I'm hoping someone already has something similar to this.
Thanks, if there's something I can do in return I will!
Mark
I am a rank newbie, I know next to nothing about VBS but I have a dire need. I have 1600 servers for which I need to know if I can map to them using each of five different user accounts.
So, I need a script to suck in server names from a text file and try to map to \\servername\c$ using five different user accounts. It would be best if it stops trying after it finds a user account that works.
The results would be output to a text file, just something like this:
"Success <servername> with <user account name>"
If none of the accounts work then if possible I'd like it to echo that to the same output file, something like:
"Failure logging into <servername>"
I'm hoping someone already has something similar to this.
Thanks, if there's something I can do in return I will!
Mark