The DeviceID command returns the device identifier (ID) in the form of the function discovery key, PKEY_PNPX_GlobalIdentity. This key returns the universally unique ID (UUID) of the root device. The output buffer contains a NULL-terminated string that represents the UUID.
For more information about function discovery keys, see the Microsoft Windows SDK documentation.
Build date: 12/16/2013