' Convert DATETIME to FILETIME
' Windows NT 4.0 SP4 and later : No
Set dateTime = CreateObject("WbemScripting.SWbemDateTime")
For Each os In GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
WScript.Echo "Operating system installation date:"
WScript.Echo " WMI DATETIME format: " & os.InstallDate
dateTime.Value = os.InstallDate
WScript.Echo " FILETIME format: " & dateTime.GetFileTime
Next