Re: Log File!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you do not see how to design it then perhaps you best alternative
is to hunt for a purchasable third-party application, if any available,
that does this.
Were I writing it I would use WMI eventing to subscribe to the
desired logon and logoff events from the event logging provider.
I would design it to start as a service on each DC, and for them
to exist in a peered but also tiered master-server relationship so
that all events from all DCs would be taken into account. There
would be no reading of the event log(s), just a tracking of each
principal that is active. Your issue would be that it is not always
as simple as the first logoff following the initial login that is
significant. Consider the sequence login, login, logoff, login,
logoff, etc. for a single principal (which is still logged on).

--
Roger Abell
Microsoft MVP (Windows Security)
MCSE (W2k3,W2k,Nt4) MCDBA
"c-mos" <eng_shaima1183@xxxxxxxxx> wrote in message
news:1117792236.171809.89050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello...
>
> I'm trying to read the logon and the logoff time from a log file. In
> order to determine the total time of the user since the first logon, so
> that after reaching a specific time the account of the user will be
> disabled. I don't know how to do that?. Can I write a script to read
> from the log file,and at the same time, this script should be executed
> many times say about one time per 5 seconds.
>
> Which option does manage this schedule?, and how can I write this
> script if that's the solution?
>
> Please help me.
>


.



Relevant Pages

  • Logoff Script
    ... I'm trying to write a script that will check and see if a particular ... whenever someone tries to logoff and prevent the logoff from ... In the past people have logged off computers while VMware ... was running and usually these virtual machines would be running QE ...
    (microsoft.public.windows.server.scripting)
  • Re: How do I display only the last output string in vbscript
    ... The logoff button in the start menu and Ctrl+Alt+Del menu has been ... The script checks for the VMware ... Please turn off the VMs before continuing. ...
    (microsoft.public.scripting.vbscript)
  • Re: log off command
    ... There are a lot of great sites that describe script language in detail. ... You can logoff a sessionname or a session ID in each case you have to know ... Matija Hrovat ... I can issue the command from either user1 or user2, ...
    (microsoft.public.windowsxp.basics)
  • Re: Local Policy Logoff/Shutdown scripts
    ... was anything wrong with the idea of setting a logoff/shutdown script to fire ... policy logoff or shutdown script on a single machine that is part of an SBS ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Local Policy Logoff/Shutdown scripts
    ... policy logoff or shutdown script on a single machine that is part of an SBS ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)