Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagevb
...
WScript.Echo "UserName: " & objItem.UserName
        WScript.Echo
    Next
Next

Function WMIDateStringToDate(dtmDate)
WScript.Echo dtm:
    WMIDateStringToDate = CDate(Mid(dtmDate, 5, 2) & "/" & _
    Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _
    & " " & Mid (dtmDate, 9, 2) & ":" & Mid(dtmDate, 11, 2) & ":"
& Mid(dtmDate,13, 2))
End Function

 Output Format

The Uptime Infrastructure Monitor monitoring station expects to see data in the following format:

...