Re: Log report on clients

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



A different solution than using Windows Auditing would be to use a
quick logon script that would write a small note in your event viewer
(application node) the username, clientname, servername date and time
of logoff and logon:

Set sho = CreateObject("Wscript.Shell")
set sysi = createobject("ADSystemInfo")
strUser=sysi.UserName
set objUser=GetObject("LDAP://"; & strUser)
sClientName = sho.ExpandEnvironmentStrings ("%ClientName%")
sho.LogEvent 4,"User " & objUser.samaccountName & " has logged on at "
& now & " from Terminal " & sClientName

The above script could also track reconnections and disconnections
using ReconnAct from http://www.loginconsultants.nl, very nice little
tool (be careful though because if your AD is configured to run logon
script synchronously you'll need to find a different way to fire it).

.



Relevant Pages

  • Re: Users last logon info from logon script
    ... I put this line in the users logon script: ... If I run the script manually, it shows the last logon time. ... I guess it is because Windows update the lastlogon attribute once a user ... Then, for each Domain Controller, ADO is used to search the ...
    (microsoft.public.security)
  • Re: slow logon
    ... in the logon time have been reduced so far. ... update the time for the clients that talk to the dc as the logon server. ... start up script in AD to apply updates to the clients machines which is ...
    (microsoft.public.windows.server.active_directory)
  • Logon Script Causing Laptops To Hang - Problems in script?
    ... I'm using the following script to map drives, ... functions when users logon to our domain. ... 'Disconnects Drives This assures everyone has the same drive mappings. ... objNetwork.MapNetworkDrive strTrainDrv, strPath ...
    (microsoft.public.scripting.vbscript)
  • Re: Disable multiple computers logon
    ... script appended username, computername, date/time, and IP address to a text ... I always cautioned that since the logon scripts ... a malicious user could modify the logs. ...
    (microsoft.public.windows.server.scripting)
  • Re: add computer account to AD security group during logon
    ... groups are filled after the logon. ... logoff script that log information to a text file. ... Dim objUserGroup, objComputerGroup ...
    (microsoft.public.windows.server.active_directory)