Re: 2 questions: uptime and last logged on users

From: Jiachuan Wang [MSFT] (jiawang_at_online.microsoft.com)
Date: 05/03/04


Date: Mon, 3 May 2004 15:43:05 -0700

regarding previously logged on users, the security log should have the
record of audits for Logon/Logoff. Therefore you can use the query like
"Select * from Win32_NTEventLogFile where LogFileName='Security'", and of
course you should limit your query using other properties
(Category='Logon/Logoff') and exclude some known accounts like "network
service" etc.

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jiachuan Wang [MSFT]" <jiawang@online.microsoft.com> wrote in message
news:%23BpPftVMEHA.2488@TK2MSFTNGP10.phx.gbl...
> Using WMI performance counter class
"Win32_PerfFormattedData_PerfOS_System".
> There's a "SystemUpTime" property.
>
> -- 
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Sameh Ahmed" <essoplus@hotmail.com> wrote in message
> news:%23OA9AyRMEHA.3380@TK2MSFTNGP11.phx.gbl...
> > Hello there
> > Anybody where to look for the computer uptime, and where to look for a
> list
> > of accounts that logged on to the system previously?
> > Thanks in advance.
> > Regards
> >
> >
>
>


Relevant Pages

  • Re: Constructing a singleton query from a relational data source
    ... That's a pretty cool query! ... This posting is provided "AS IS" with no warranties, and confers no rights. ... NATURAL PREDICTION JOIN ...
    (microsoft.public.sqlserver.datamining)
  • Re: language neutral name
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... query it from there. ...
    (microsoft.public.pocketpc.developer)
  • Re: Lost last field on tables
    ... > no warranties, and confers no rights. ... >> Yes, when I used a query to show all, not in table view. ...
    (microsoft.public.access.replication)
  • Re: getting pmml
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... >)Where should i execute this query.. ...
    (microsoft.public.sqlserver.datamining)
  • Re: 2 questions: uptime and last logged on users
    ... There's a "SystemUpTime" property. ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.win32.programmer.wmi)

Loading