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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Username to PC script

Status
Not open for further replies.

Dollar

Technical User
Oct 5, 2000
155
GB
Hi

Can anyone help with a scripting thing (I don't know how :))

We have a list of users by "Full Name" and need this to be converted to their Username (possibly an exchange query here). Right after that, we need to use this to find out what their PC hostnames are. Basically, all our databases use the username (logically so), but we only have a list of Full Names. We are on both NT4 and AD and will probably need to query both.

We have system.txt files that contain both sets of information, but we have a rather large list and limited time.

Many thanks for any suggestions.

Dollar
 
We have system.txt files that contain both sets of information

Could you explain this further?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Hi
The system.txt file resides on the root of c:\ and contains all the data we would essentially require. I only mentioned it as it may make it easier to script something using this file - but it would rely on the PC being on, and on the network at the time.
The file contains summary information like CPU, logged in user, hostname and bits of other information as well.
Thanks
Dollar
 
Can you eloborate a little more on what your actual need is here?

Are you looking to copy data from that file to some place else? Or do you want a way to get a list of login names?

What is the actual end result you are looking for here?

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top