• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Mapping windows 2003 usernames to workstations on windows 2003 native DC

Hi, I have a native mode 2003 domain with about 100 users, sharing 30 workstations.

How can I figure out which users are logging on to which workstation? if I can export a neat list to csv that'd be great!

many thanks.
0
eggster34
Asked:
eggster34
  • 2
1 Solution
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
That's not so simple with scripting. I would suggest to try Spiceworks reporting to check if it fullfils your requirements. That's free software available at www.spiceworks.com
0
 
rdhoore108Commented:
I don't know if Windows has some built-in accounting in this regard. But you could easily do some accounting of your own, by making a login script and logoff script that writes a little file when logging in, and deleting it when logging off.

when logging in:
copy nul "%computername% %username%" > "\\myserver\myshare\active_clients\"

Open in new window


when logging off:
del "\\myserver\myshare\active_clients\%computername% %username%"

Open in new window


To see who is active:
dir "\\myserver\myshare\active_clients\"

Open in new window


The login and logoff script can be assigned separately to each user, but you will be much happier specifying it in your Group Policy.
0
 
rdhoore108Commented:
PS. Regarding the list of users (3rd code): if you don't want to see the login time, you can also do "dir /b" to see only the computer names and user names.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now