EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

CIM_OperatingSystem class

The CIM_OperatingSystem class represents a computer operating system, which is made up of software and firmware that make a computer system's hardware usable.

Important  The DMTF (Distributed Management Task Force) CIM (Common Information Model) classes are the parent classes upon which WMI classes are built. WMI currently supports only the CIM 2.x version schemas.

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

class CIM_OperatingSystem : CIM_LogicalElement
{
  string   Caption;
  string   CreationClassName;
  string   CSCreationClassName;
  string   CSName;
  sint16   CurrentTimeZone;
  string   Description;
  boolean  Distributed;
  uint64   FreePhysicalMemory;
  uint64   FreeSpaceInPagingFiles;
  uint64   FreeVirtualMemory;
  datetime InstallDate;
  datetime LastBootUpTime;
  datetime LocalDateTime;
  uint32   MaxNumberOfProcesses;
  uint64   MaxProcessMemorySize;
  string   Name;
  uint32   NumberOfLicensedUsers;
  uint32   NumberOfProcesses;
  uint32   NumberOfUsers;
  uint16   OSType;
  string   OtherTypeDescription;
  uint64   SizeStoredInPagingFiles;
  string   Status;
  uint64   TotalSwapSpaceSize;
  uint64   TotalVirtualMemorySize;
  uint64   TotalVisibleMemorySize;
  string   Version;
};

Members

The CIM_OperatingSystem class has these types of members:

Methods

The CIM_OperatingSystem class has these methods.

MethodDescription
Reboot

Class method that shuts down the computer system, then restarts it. Not implemented by WMI.

Shutdown

Class method that unloads programs and DLLs to the point where it is safe to turn off the computer. Not implemented by WMI.

 

Properties

The CIM_OperatingSystem class has these properties.

Caption
Data type: string
Access type: Read-only

Short textual description of the object. This property is inherited from CIM_ManagedSystemElement.

CreationClassName
Data type: string
Access type: Read-only

Name of the class or subclass used in the creation of an instance. When used with other key properties of the class, this property allows all instances of the class and its subclasses to be uniquely identified.

CSCreationClassName
Data type: string
Access type: Read-only

Scoping computer system's creation class name.

CSName
Data type: string
Access type: Read-only

Scoping computer system's name.

CurrentTimeZone
Data type: sint16
Access type: Read/write

Number of minutes the operating system is offset from Greenwich Mean Time (GMT). The number is positive, negative, or zero.

Description
Data type: string
Access type: Read-only

Textual description of the object. This property is inherited from CIM_ManagedSystemElement.

Distributed
Data type: boolean
Access type: Read-only

If TRUE, the operating system is distributed across several computer system nodes, which should be grouped as a cluster.

FreePhysicalMemory
Data type: uint64
Access type: Read-only

Number of kilobytes of physical memory currently unused and available.

For more information about using uint64 values in scripts, see Scripting in WMI.

FreeSpaceInPagingFiles
Data type: uint64
Access type: Read-only

Number of kilobytes that can be mapped into the operating system's paging files without causing other pages to be swapped out. A value of 0 indicates that there are no paging files.

For more information about using uint64 values in scripts, see Scripting in WMI.

FreeVirtualMemory
Data type: uint64
Access type: Read-only

Number of kilobytes of virtual memory currently unused and available. For example, this can be calculated by adding the amount of free RAM to the amount of free paging space (that is, adding the FreePhysicalMemory and FreeSpaceInPagingFiles properties).

For more information about using uint64 values in scripts, see Scripting in WMI.

InstallDate
Data type: datetime
Access type: Read-only

Date and time the object was installed. This property does not require a value to indicate that the object is installed. This property is inherited from CIM_ManagedSystemElement.

LastBootUpTime
Data type: datetime
Access type: Read-only

Time when the operating system was last booted.

LocalDateTime
Data type: datetime
Access type: Read-only

Operating system's notion of the local date and time of day.

MaxNumberOfProcesses
Data type: uint32
Access type: Read-only

Maximum number of process contexts the operating system can support. If there is no fixed maximum, the value should be 0 (zero). On systems that have a fixed maximum, this object can help diagnose failures that occur when the maximum is reached. If unknown, enter -1.

MaxProcessMemorySize
Data type: uint64
Access type: Read-only

Maximum number of kilobytes of memory that can be allocated to a process. For operating systems with no virtual memory, this value is typically equal to the total amount of physical memory, minus memory used by the BIOS and the operating system. For some operating systems, this value can be infinity, in which case 0 should be entered. In other cases, this value can be a constant, for example, 2 GB or 4 GB.

For more information about using uint64 values in scripts, see Scripting in WMI.

Name
Data type: string
Access type: Read-only

Key of an operating system instance within a computer system. This property is inherited from CIM_ManagedSystemElement.

NumberOfLicensedUsers
Data type: uint32
Access type: Read-only

Number of user licenses for the operating system. If unlimited, enter 0, if unknown, enter -1.

NumberOfProcesses
Data type: uint32
Access type: Read-only

Number of process contexts currently loaded or running on the operating system.

NumberOfUsers
Data type: uint32
Access type: Read-only

Number of user sessions for which the operating system is currently storing state information.

OSType
Data type: uint16
Access type: Read-only

Type of operating system.

ValueMeaning
0

Unknown

1

Other

2

Mac OS

3

ATT UNIX

4

DGUX

5

DECNT

6

Digital UNIX

7

Open VMS

8

HP-UX

9

AIX

10

MVS

11

OS400

12

OS/2

13

Microsoft Virtual Machine (VM) for Java

14

MSDOS

15

Windows 3.x

16

Windows 95

17

Windows 98

18

Windows NT

19

Windows CE

20

NCR 3000

21

NetWare

22

OSF

23

DC/OS

24

Reliant UNIX

25

SCO UnixWare

26

SCO OpenServer

27

Sequent

28

IRIX

29

Solaris

30

SunOS

31

U6000

32

A Series

33

Tandem NSK

34

Tandem NT

35

BS2000/OSD

36

Linux

37

Lynx

38

Xenix

39

VM/ESA

40

Interactive UNIX

41

BSD UNIX

42

FreeBSD

43

NetBSD

44

GNU Hurd

45

Mac OS 9

46

Mach Kernel

47

Inferno

48

QNX

49

EPOC

50

IxWorks

51

VxWorks

52

MiNT

53

BeOS

54

HP MPE

55

NEXTSTEP

56

Palm OS

57

Rhapsody

58

Windows 2000

59

Dedicated

60

OS/390

61

VSE

62

TPF

 

OtherTypeDescription
Data type: string
Access type: Read-only

Describes the manufacturer and operating system type when the OSType property is set to 1 ("Other"). The format of the string inserted in OtherTypeDescription should be similar to the Values strings defined for OSType. This property should be set to null when OSType is a value other than 1 (one).

SizeStoredInPagingFiles
Data type: uint64
Access type: Read-only

Number of kilobytes that can be stored in the operating system's paging files. This number does not represent the actual physical size of the paging file on disk. A value of 0 (zero)indicates that there are no paging files.

For more information about using uint64 values in scripts, see Scripting in WMI.

Status
Data type: string
Access type: Read-only

Current status of the object. This property is inherited from CIM_ManagedSystemElement.

Values include the following:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"
"Stressed"
"NonRecover"
"No Contact"
"Lost Comm"
TotalSwapSpaceSize
Data type: uint64
Access type: Read-only

Total swap space, in kilobytes. This value can be null (unspecified) if swap space is not distinguished from page files. However, some operating systems distinguish these concepts. For example, entire processes can be "swapped out" in UNIX when the free page list falls and remains below a specified amount.

For more information about using uint64 values in scripts, see Scripting in WMI.

TotalVirtualMemorySize
Data type: uint64
Access type: Read-only

Number of kilobytes of virtual memory. For example, calculate this by adding the amount of total RAM to the amount of paging space (that is, add the amount of memory in or aggregated by the computer system to the SizeStoredInPagingFiles property.

For more information about using uint64 values in scripts, see Scripting in WMI.

TotalVisibleMemorySize
Data type: uint64
Access type: Read-only

Total amount of physical memory, in kilobytes, available to the operating system. This value does not necessarily indicate the true amount of physical memory, but what is reported to the operating system as available to it.

For more information about using uint64 values in scripts, see Scripting in WMI.

Version
Data type: string
Access type: Read-only

Version of the operation.

The version of the operation should be in one of the following forms:

  • <major>.<minor>.<revision>
  • <major>.<minor><letter><revision>

Remarks

The CIM_OperatingSystem class is derived from CIM_LogicalElement.

WMI does not implement this class. For WMI classes that are derived from CIM_OperatingSystem, see Win32 Classes.

This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

 

 

表示:
© 2014 Microsoft