Click to See Complete Forum and Search --> : Help! Need script to perform user lookup accross the board on a network.
BGO
September 11th, 2006, 05:06 AM
Hi.
I would some help in creating a script which can perform a user lookup across a specified network.
I want the script to dump this information to a file, which simply contains:
MachineName: BGD01
User: BGO_USER
Thanks in advance
PeejAvery
September 11th, 2006, 09:51 AM
Is this script going to run on each computer so that it indexes all machines or do you want one machine to be able to search the network for these?
BGO
September 11th, 2006, 10:22 AM
Preferabbly it will want to be run from one primary/admin server. I simply should be able to specify the domain and this should query all available machines in that domain, and return the ComputerName and User for each of them and preferabbly pipe the results to a file.
How can I do this in the simplest method?
PeejAvery
September 11th, 2006, 10:23 AM
Well, first off, a script would not be the best way to do it.
Second, what is the network system you have? In other words, where would your user derive from?
BGO
September 11th, 2006, 11:11 AM
come to think of it. I guess the script or procedure would need to query for these values from the windows registry...
What would you reccomend as the best way to perform this?
Thanks in advance...
PeejAvery
September 11th, 2006, 11:25 AM
It would not have to get the information from the registry.
As I asked before, what is the network that these users are authenticating to? Without that information, I can't advise how to get the logged on user.
BGO
September 11th, 2006, 11:30 AM
Its an internal network, of which I cannot reveal the name of I am afraid.
Unless you are asking of which type network is it, then I do not know. Can you give an example as to what 'name' you are looking for?
PeejAvery
September 11th, 2006, 11:43 AM
Of course it is an internal network. What I am asking is how is the network set up?
Is it Novell Networks, Microsoft Networks, ect...
BGO
September 11th, 2006, 11:52 AM
Sorry, its Microsoft.
PeejAvery
September 12th, 2006, 09:17 AM
Do you have access to a language interpreter and compiler such as Visual Basic? That would be, in my opinion, the simplest and quickest route.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.