Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need script to test network access to list of servers

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top