__CIMOMIdentification class

The __CIMOMIdentification system class describes the local installation of WMI. This is a singleton class; there is only one instance. The __CIMOMIdentification class is available only in the Root and Root\Default namespaces. Users query for the instance to obtain information about the WMI installation.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[singleton]
class __CIMOMIdentification : __SystemClass
{
  string SetupDateTime;
  string VersionCurrentlyRunning;
  string VersionUsedToCreateDB;
  string WorkingDirectory;
};

Members

The __CIMOMIdentification class has these types of members:

Properties

The __CIMOMIdentification class has these properties.

SetupDateTime

Data type: string

Access type: Read-only

Date and time of installation. This property is empty after the operating system is installed for the first time.

If the WMI repository has been deleted and then created again, this property contains the date and time that the repository is created again.

VersionCurrentlyRunning

Data type: string

Access type: Read-only

Indicates the version of the actual image containing the WMI service that created the Common Information Model (CIM) repository. Because the repository format may change between versions of WMI, this property allows future WMI upgrades to determine whether the database must be upgraded. The format is:

"1.00.183.0000"

where the first digit is the major version, the next two digits are minor versions, and the next three digits are the build number. The remaining digits are not used.

VersionUsedToCreateDB

Data type: string

Access type: Read-only

Indicates the version of the actual image containing the WMI service that created the CIM repository. Because the repository format may change between versions of WMI, this property allows future WMI upgrades to determine whether the database must be upgraded. The format is:

"1.00.183.0000"

where the first digit is the major version, the next two digits are minor versions, and the next three digits are the build number. The remaining digits are not used.

WorkingDirectory

Data type: string

Access type: Read-only

Installation directory.

Remarks

The __CIMOMIdentification class is derived from __SystemClass, which has no properties.

Examples

The following VBScript code sample describes how to display CIM object model identification information, and was taken from the sample directory at \\Program Files\Microsoft SDKs\Windows\v7.0\Samples\sysmgmt\wmi\scripting.

on error resume next 
set cimomid = GetObject("winmgmts:root\default:__cimomidentification=@")

if err <> 0 then
 WScript.Echo ErrNumber, Err.Source, Err.Description
else
 WScript.Echo cimomid.path_.displayname
 WScript.Echo cimomid.versionusedtocreatedb
end if

The following Perl code sample describes how to display CIM object model identification information, and was taken from the sample directory at \\Program Files\Microsoft SDKs\Windows\v7.0\Samples\sysmgmt\wmi\scripting.

use strict;
use Win32::OLE;

my ($Cimomid, $locator, $services);

eval { $Cimomid = Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\default")->
 Get("__CIMOMIdentification=@"); };

unless ($@)
{
 print "\n", $Cimomid->Path_()->{displayname}, "\n";
 print $Cimomid->{versionusedtocreatedb}, "\n";
}
else
{ 
 print STDERR "\n", Win32::OLE->LastError, "\n";
}

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root

See also

__SystemClass

WMI System Classes