Guest JJM0926 Posted January 9, 2008 Posted January 9, 2008 Is there a way to query Windows Server 2003 for every login time for every client or user on the network? Thanks.
Guest Harry Bates Posted January 9, 2008 Posted January 9, 2008 Re: Client Login Information You would need to script it and this would be you basic workflow: 1. Get DC 2. Get full AD path to the OU in question. 3. Get a list of all objects within the OU 4. Query objects for type "User" 5. Query AD for each user for (GET) property "LastLogon" 6. Append to log Now, if you were looking for a simple one that would evolve over time, you could simply code a batch file to push (>) time & date to a file on a hidden share on a server such as ECHO %TIME% > \\SERVER\SHARE$\%USERNAME%.LOG ECHO %DATE% >> \\SERVER\SHARE$\%USERNAME%.LOG ECHO %COMPUTERNAME% >> \\SERVER\SHARE$\%USERNAME%.LOG. With this the time will be on the first, the time on the second, and the node name will be on the third line. "JJM0926" <jjm0926@gmail.com> wrote in message news:739396b7-ce66-46a0-82dc-c4ef2fb38840@e25g2000prg.googlegroups.com... > Is there a way to query Windows Server 2003 for every login time for > every client or user on the network? Thanks.
Recommended Posts