jskfan
asked on
VBS to Retrieve the computer a user is logged on.
I would like to have a script that retrieves computer names in the Active Directory Domain, where a certain user account has logged on, or there is a process running under certain user account.
For instance a script that shows an input box to enter a user account then it searches the domain and retrieves any computer name that has been logged by that user account or if there is any process running with that user account?
Thanks
For instance a script that shows an input box to enter a user account then it searches the domain and retrieves any computer name that has been logged by that user account or if there is any process running with that user account?
Thanks
ASKER
where does the script puts the output?
As written it creates a list of computers in the strList variable and echoes it on lines 45-46.
ASKER
any way to put the output to a text file?
Thanks a lot!
Thanks a lot!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
dstewartjr:It's easier to just run the command :
psloggedon <username>
Tha's what I did..
psloggedon <username>
Tha's what I did..
ASKER
Shift-3 worked hard on the script though... he needs to be rewarded for his efforts
This is necessarily quite slow, as the script has to check every machine.
Open in new window