locked
Win32_NetworkLoginProfile LastLogon value not accurate RRS feed

  • Question

  • I am trying to use the WMI class "Win32_NetworkLoginProfile" but the date/time value returned does not align with actual user logins.  I also do not understand the documentation when it references "sutc".  What is sutc?  The documentation is found at:

     

    http://msdn.microsoft.com/en-us/library/aa394221%28v=vs.85%29.aspx

     

    Which includes the following definition of the attribute:

    LastLogon
    Data type: datetime
    Access type: Read-only

     

    User last logged on to the system. This value is calculated from the number of seconds elapsed since 00:00:00, January 1, 1970. The format of this value is yyyymmddhhmmss.mmmmmm sutc.

    Example: 19521201000230.000000 000

     

    Wednesday, December 22, 2010 9:46 PM

All replies

  • I believe that this is the same as UTC time which as defined by google is the following (Maybe the 'S' is for standard:

    utc time  

    Coordinated Universal Time (UTC) is a time standard based on International Atomic Time (TAI) with leap seconds added at irregular...

    This is essentially the same as GMT - IE, Auckland NZ is +12 GMT and +12 UTC.

    I believe that this is a ridiculous way of storing the time as well. It is very time consuming to write a formula to convert this to my local time in a script I am writing. 

    Thursday, September 5, 2013 3:25 AM