Reference for Win32_OperatingSystem
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Operating System

Description (Beschreibung):

The Win32_OperatingSystem WMI class represents an operating system installed on a Win32 computer system. Any operating system that can be installed on a Win32 system is a descendent (or member) of this class. If the computer has multiple operating systems installed, this class returns only an instance for the currently active operating system.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_OperatingSystemYesYesYesYesYes

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
BootDeviceYesYesYesYesYes
BuildNumberYesYesYesYesYes
BuildTypeYesYesYesYesYes
CaptionYesYesYesYesYes
CodeSetYesYesYesYesYes
CountryCodeYesYesYesYesYes
CreationClassNameYesYesYesYesYes
CSCreationClassNameYesYesYesYesYes
CSDVersionYesYesYesYesYes
CSNameYesYesYesYesYes
CurrentTimeZoneYesYesYesYesYes
DebugYesYesYesYesYes
DescriptionYesYesYesYesYes
DistributedYesYesYesYesYes
EncryptionLevelYesYes---
ForegroundApplicationBoostYesYesYesYesYes
FreePhysicalMemoryYesYesYesYesYes
FreeSpaceInPagingFilesYesYesYesYesYes
FreeVirtualMemoryYesYesYesYesYes
InstallDateYesYesYesYesYes
LargeSystemCacheYesYes---
LastBootUpTimeYesYesYesYesYes
LocalDateTimeYesYesYesYesYes
LocaleYesYesYesYesYes
ManufacturerYesYesYesYesYes
MaxNumberOfProcessesYesYesYesYesYes
MaxProcessMemorySizeYesYesYesYesYes
NameYesYesYesYesYes
NumberOfLicensedUsersYesYesYesYesYes
NumberOfProcessesYesYesYesYesYes
NumberOfUsersYesYesYesYesYes
OrganizationYesYesYesYesYes
OSLanguageYesYesYesYesYes
OSProductSuiteYesYesYesYesYes
OSTypeYesYesYesYesYes
OtherTypeDescriptionYesYesYesYesYes
PlusProductIDYesYesYesYesYes
PlusVersionNumberYesYesYesYesYes
PrimaryYesYesYesYesYes
ProductTypeYesYes---
QuantumLengthYesYesYesYesYes
QuantumTypeYesYesYesYesYes
RegisteredUserYesYesYesYesYes
SerialNumberYesYesYesYesYes
ServicePackMajorVersionYesYesYesYesYes
ServicePackMinorVersionYesYesYesYesYes
SizeStoredInPagingFilesYesYesYesYesYes
StatusYesYesYesYesYes
SuiteMaskYesYes---
SystemDeviceYesYesYesYesYes
SystemDirectoryYesYesYesYesYes
SystemDriveYesYes---
TotalSwapSpaceSizeYesYesYesYesYes
TotalVirtualMemorySizeYesYesYesYesYes
TotalVisibleMemorySizeYesYesYesYesYes
VersionYesYesYesYesYes
WindowsDirectoryYesYesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
RebootYesYesYesYesYes
SetDateTimeYesYes---
ShutdownYesYesYesYesYes
Win32ShutdownYesYesYesYesYes

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation