Which domain user has logged onto which machine

25 pts.
Tags:
Domain Forest
Microsoft Windows Server 2003
User profiles
Looking for a way to tell which user is the Primary user of multiple machines. Note looking for tracking 400+ users and 700+ XP and Vista client domain connected workstations. Want to be able to tell "Who is the primary user of which machine". No this is not using roaming profiles and Yes this is a fully integrated Windows 2003 domain forest.

Answer Wiki

Thanks. We'll let you know when a new response is added.

We use a group policy logon script that records who logs into each computer.

echo logon %username% %computername% %date% %time% >> \\FILE_LOCATION.txt

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Spotter0005
    What about checking the USER.DAT modified date in the c:documents and settings folders? This will tell you the latest user who legged on
    0 pointsBadges:
    report
  • Spotter0005
    Good thought however would need to first know who is logged into it. Trying to achieve by some sort of Bot or AD Query whch will provide data for the following task. When removing an account from the AD. Search all computers this user has logged in to and then remove thier profiles from the workstations. Assigning users specific machines to log in to is not a viable solution for our network Been shot down several times on that principle. Considered using the VBE scripts for search machines with username XXXX however this requires more systadmin time to review again the initial question of who is the primary user. Attempted Kixtart for creating the functions but again did not provide an easier means only more time spent machine by machine searching manually. Should have been more explicit. When removing a user form the domain want to perform the following task: Remove the account (obvously) then remove the home folders, then perform a search on a given list of machines for the user's profile and remove it from the workstation(s) clearing HD space for the next user.
    25 pointsBadges:
    report
  • Spotter0005
    Well in order to see who is actually logged to a system you can use a simple VBS like this:
    strComputer = "RemoteComputer"
    Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!" & strComputer & "rootcimv2") 
    Set colComputer = objWMIService.ExecQuery _
        ("Select * from Win32_ComputerSystem")
    For Each objComputer in colComputer
        Wscript.Echo objComputer.UserName
    Next
    0 pointsBadges:
    report
  • MacLeod
    Hello, To find out where a specific user is logged on I use the SysInternals tool PSLOGGEDON. Kind regards, Duncan
    80 pointsBadges:
    report
  • mshen
    The group policy logon script that I suggested will work because you can search the logon log to see which computer the user logged into and remove the user profile from each machine. That will eliminate any guess work in trying to find out which machine they logged on to. A similar logout script will give you a full cycle of when they logged in and when they logged out.
    27,385 pointsBadges:
    report
  • Spotter0005
    Turns out Microsoft has a server 2003 resource kit tool delprof. This enables the remote removal of profiles that have not been used in a specified number of days. This combined with a home generated looping script for comparing a list of user accounts (domain login name) to a list of workstation accounts (pulled from AD) enables the removal of accounts from those who are leaving using ps tools PSexec running the bat file on the local machine to delete the content of the c:documents and settings Thanks for your help
    25 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following