WMI Property Data Types

There are several types of values that may be returned by WMI. For ease of use, the Admin Script Editor WMI Wizard displays the type of value alongside each property in a Class.

Data types

Data format

Boolean

Byte where zero is FALSE, and a non-zero is TRUE (-1)

String

Null terminated ANSI string

uint8

Unsigned 8-bit integer

uint16

Unsigned 16-bit integer

uint32

Unsigned 32-bit integer

uint64

Unsigned 64-bit integer

sint8

Signed 8-bit integer

sint16

Signed 16-bit integer

sint32

Signed 32-bit integer

sint64

Signed 64-bit integer

Char16

A 16-bit character

Reference

A reference to another object. This is represented by a string containing the path to the referenced object.

Object

An embedded object. Embedded objects differ from references in that the embedded object doesn't have a path and its lifetime is identical to the lifetime of the containing object.

DateTime

25-character string used to specify absolute dates or time intervals. Format is described below.

Real32

A floating-point 32-bit number

Real64

A floating point 64-bit number

Arrays

If the sample value reads -Array- it is returning an array of the specified type (string = an array of strings). The ASE WMI Wizard does not currently display arrays as sample data.

DateTime

A date or time value, represented in a string in DMTF date/time format:

yyyymmddHHMMSS.mmmmmmsUUU

yyyymmdd - is the date in year/month/day

HHMMSS - is the time in hours/minutes/seconds

mmmmmm - is the number of microseconds in 6 digits

sUUU - is a sign (+ or -) and a 3-digit UTC offset