Ekuskowski
asked on
retrieving User name and computer name throughout domain
Does anyone know of a script that I can run that would return the computer name and username throughout my organization.
I need a list of everyon'es computername. So if I can get the Computername and username that was last logged in . i would be set
Thanks in advance for your help
I need a list of everyon'es computername. So if I can get the Computername and username that was last logged in . i would be set
Thanks in advance for your help
ASKER
OK, so I'mn not exactly sure what location I need to change and what I am supposed to do with this code.
this is a .vbs save this in a .txt file and change the extension
you should be able to just save it and run it, I got this from another person at my job
ASKER
I was actually hoping for a script that will go out and create a list of all the usernames and computer names, I don't want to have to provide the names of the computers. Unless there is an easy way for me to creAte a list of all the computer names in our organization.
Thanks again
Thanks again
Do you mean something like this (from http://technet2.microsoft.
View All Workstation Members in a Domain
To list all the workstations in the domain Northamerica, type the following at the command prompt:
netdom query /d:Northamerica WORKSTATION
Does that get you halfway there?
ASKER
ok I ran the net dom Query I wrote it to a text file. I then cleaned up the text file and used when running the vbs script.
The VBS script creates a database but it does not show me the last person logged into the computer.
Does anyone know how to modify this script or have another script that can produce workstation names and logged on username.
I figure Active directory must have this information, I just don't know how to access it.
Any help is much appreciated.
Thank you
The VBS script creates a database but it does not show me the last person logged into the computer.
Does anyone know how to modify this script or have another script that can produce workstation names and logged on username.
I figure Active directory must have this information, I just don't know how to access it.
Any help is much appreciated.
Thank you
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Open in new window