Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

__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 SetupDate;
  string SetupTime;
  string VersionCurrentlyRunning;
  string VersionUsedToCreateDB;
  string WorkingDirectory;
};

Members

The __CIMOMIdentification class has these types of members:

Properties

The __CIMOMIdentification class has these properties.

SetupDate
Data type: string
Access type: Read-only

Starting with Windows Vista, this property is not available. Use SetupDateTime instead.

Windows Server 2003:  The property is available. Contains the date the repository was first set up in CIM_String format.

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.

Windows Server 2003:  This property is not available.

SetupTime
Data type: string
Access type: Read-only

Starting with Windows Vista, this property is not available. Use SetupDateTime instead.

Windows Server 2003:  The property is available. Contains the time the repository was first set up in CIM_String format.

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

Root

See also

WMI System Classes

 

 

Show:
© 2015 Microsoft