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

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Disks and Storage

Description (Beschreibung):

The Win32_CDROMDrive WMI class represents a CD-ROM drive on a Windows computer system. Note that the name of the drive does not correspond to the logical drive letter assigned to device.

Availability (Verfügbarkeit):

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

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AvailabilityYesYesYesYesYes
CapabilitiesYesYesYesYesYes
CapabilityDescriptionsYesYesYesYesYes
CaptionYesYesYesYesYes
CompressionMethodYesYesYesYesYes
ConfigManagerErrorCodeYesYesYesYesYes
ConfigManagerUserConfigYesYesYesYesYes
CreationClassNameYesYesYesYesYes
DefaultBlockSizeYesYesYesYesYes
DescriptionYesYesYesYesYes
DeviceIDYesYesYesYesYes
DriveYesYesYesYesYes
DriveIntegrityYesYesYesYesYes
ErrorClearedYesYesYesYesYes
ErrorDescriptionYesYesYesYesYes
ErrorMethodologyYesYesYesYesYes
FileSystemFlagsYesYesYesYesYes
FileSystemFlagsExYesYesYesYesYes
IdYesYesYesYesYes
InstallDateYesYesYesYesYes
LastErrorCodeYesYesYesYesYes
ManufacturerYesYesYesYesYes
MaxBlockSizeYesYesYesYesYes
MaximumComponentLengthYesYesYesYesYes
MaxMediaSizeYesYesYesYesYes
MediaLoadedYesYesYesYesYes
MediaTypeYesYesYesYesYes
MfrAssignedRevisionLevelYesYes---
MinBlockSizeYesYesYesYesYes
NameYesYesYesYesYes
NeedsCleaningYesYesYesYesYes
NumberOfMediaSupportedYesYesYesYesYes
PNPDeviceIDYesYesYesYesYes
PowerManagementCapabilitiesYesYesYesYesYes
PowerManagementSupportedYesYesYesYesYes
RevisionLevelYesYesYesYesYes
SCSIBusYesYesYesYesYes
SCSILogicalUnitYesYesYesYesYes
SCSIPortYesYesYesYesYes
SCSITargetIdYesYesYesYesYes
SizeYesYesYesYesYes
StatusYesYesYesYesYes
StatusInfoYesYesYesYesYes
SystemCreationClassNameYesYesYesYesYes
SystemNameYesYesYesYesYes
TransferRateYesYesYesYesYes
VolumeNameYesYesYesYesYes
VolumeSerialNumberYesYesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
ResetYesYesYesYesYes
SetPowerStateYesYesYesYesYes

Sample Code (Beispiel):

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

Links:

Link zur Original-Microsoft-Dokumentation