CIM_CDROMDrive

CIM CDROMDrive
root/cimv2abstract

The CIM_CDROMDrive class represents a CD-ROM drive on the computer.

On this page

Main example

List instances

# Abstract class: Get-CimInstance returns the instances of its subclasses
Get-CimInstance -ClassName CIM_CDROMDrive |
    Select-Object -Property DeviceID, Description, Status, InstallDate

Abstract class: it has no instances of its own. Get-CimInstance returns the instances of its subclasses (Win32_CDROMDrive).

Examples

Decode numeric values

# Lookup table for Availability (values documented by Microsoft)
$availabilityName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Running/Full Power'
    4 = 'Warning'
    5 = 'In Test'
    6 = 'Not Applicable'
    7 = 'Power Off'
    8 = 'Off Line'
    9 = 'Off Duty'
    10 = 'Degraded'
    11 = 'Not Installed'
    12 = 'Install Error'
    13 = 'Power Save - Unknown'
    14 = 'Power Save - Low Power Mode'
    15 = 'Power Save - Standby'
    16 = 'Power Cycle'
    17 = 'Power Save - Warning'
    18 = 'Paused'
    19 = 'Not Ready'
    20 = 'Not Configured'
    21 = 'Quiesced'
}
# Lookup table for ConfigManagerErrorCode (values documented by Microsoft)
$configManagerErrorCodeName = @{
    0 = 'This device is working properly'
    1 = 'This device is not configured correctly'
    2 = 'Windows cannot load the driver for this device'
    3 = 'The driver for this device might be corrupted, or your…'
    4 = 'This device is not working properly'
    5 = 'The driver for this device needs a resource that Windows…'
    6 = 'The boot configuration for this device conflicts with other…'
    7 = 'Cannot filter'
    8 = 'The driver loader for the device is missing'
    9 = 'This device is not working properly because the controlling…'
    10 = 'This device cannot start'
    11 = 'This device failed'
    12 = 'This device cannot find enough free resources that it can use'
    13 = 'Windows cannot verify this device''s resources'
    14 = 'This device cannot work properly until you restart your…'
    15 = 'This device is not working properly because there is…'
    16 = 'Windows cannot identify all the resources this device uses'
    17 = 'This device is asking for an unknown resource type'
    18 = 'Reinstall the drivers for this device'
    19 = 'Failure using the VxD loader'
    20 = 'Your registry might be corrupted'
    21 = 'System failure: Try changing the driver for this device'
    22 = 'This device is disabled'
    23 = 'System failure: Try changing the driver for this device'
    24 = 'This device is not present, is not working properly, or does…'
    25 = 'Windows is still setting up this device'
    26 = 'Windows is still setting up this device'
    27 = 'This device does not have valid log configuration'
    28 = 'The drivers for this device are not installed'
    29 = 'This device is disabled because the firmware of the device…'
    30 = 'This device is using an Interrupt Request (IRQ) resource…'
    31 = 'This device is not working properly because Windows cannot…'
}

Get-CimInstance -ClassName CIM_CDROMDrive |
    Select-Object -Property @(
        'DeviceID'
        'Description'
        'Status'
        'InstallDate'
        @{ Name = 'Availability'; Expression = { $availabilityName[[int]$_.Availability] } }
        @{ Name = 'ConfigManagerErrorCode'; Expression = { $configManagerErrorCodeName[[int]$_.ConfigManagerErrorCode] } }
    )

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    Get-CimInstance -CimSession $cimSession -ClassName CIM_CDROMDrive |
        Select-Object -Property DeviceID, Description, Status, InstallDate
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName CIM_CDROMDrive
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

29 of 29 properties
NameTypeAccessDescription
Availabilityuint16read

Availability and status of the device.

Values (21)
ValueLabelDescription
1Other
2Unknown
3Running/Full Power
4Warning
5In Test
6Not Applicable
7Power Off
8Off Line
9Off Duty
10Degraded
11Not Installed
12Install Error
13Power Save - UnknownThe device is known to be in a power save mode, but its exact status is unknown.
14Power Save - Low Power ModeThe device is in a power save state but still functioning, and may exhibit degraded performance.
15Power Save - StandbyThe device is not functioning but could be brought to full power quickly.
16Power Cycle
17Power Save - WarningThe device is in a warning state, though also in a power save mode.
18PausedThe device is paused.
19Not ReadyThe device is not ready.
20Not ConfiguredThe device is not configured.
21QuiescedThe device is quiet.
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Availability for each instance
# Lookup table for Availability (values documented by Microsoft)
$availabilityName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Running/Full Power'
    4 = 'Warning'
    5 = 'In Test'
    6 = 'Not Applicable'
    7 = 'Power Off'
    8 = 'Off Line'
    9 = 'Off Duty'
    10 = 'Degraded'
    11 = 'Not Installed'
    12 = 'Install Error'
    13 = 'Power Save - Unknown'
    14 = 'Power Save - Low Power Mode'
    15 = 'Power Save - Standby'
    16 = 'Power Cycle'
    17 = 'Power Save - Warning'
    18 = 'Paused'
    19 = 'Not Ready'
    20 = 'Not Configured'
    21 = 'Quiesced'
}
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, Availability |
    Select-Object -Property @(
        'DeviceID'
        @{ Name = 'Availability'; Expression = { $availabilityName[[int]$_.Availability] } }
    )
Capabilitiesuint16[]read

Capabilities of the media access device.

Values (13)
ValueLabelDescription
0Unknown
1Other
2Sequential Access
3Random Access
4Supports WritingWriting.
5Encryption
6Compression
7Supports Removeable MediaRemovable media.
8Manual Cleaning
9Automatic Cleaning
10SMART Notification
11Supports Dual Sided MediaDistinguishes a device that can access both sides of dual-sided media from a device that reads only a single side and requires the media to be turned over.
12Predismount Eject Not RequiredIndicates that the media does not have to be explicitly ejected from the device before being accessed by a picker element.
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Capabilities for each instance
# Lookup table for Capabilities (values documented by Microsoft)
$capabilitiesName = @{
    0 = 'Unknown'
    1 = 'Other'
    2 = 'Sequential Access'
    3 = 'Random Access'
    4 = 'Supports Writing'
    5 = 'Encryption'
    6 = 'Compression'
    7 = 'Supports Removeable Media'
    8 = 'Manual Cleaning'
    9 = 'Automatic Cleaning'
    10 = 'SMART Notification'
    11 = 'Supports Dual Sided Media'
    12 = 'Predismount Eject Not Required'
}
# Capabilities is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName CIM_CDROMDrive -Property Capabilities |
    Select-Object -ExpandProperty Capabilities |
    ForEach-Object -Process { $capabilitiesName[[int]$_] }
CapabilityDescriptionsstring[]read

Array of free-form strings that provides detailed explanations for access device features indicated in the Capabilities array.

Note: Each entry of this array is related to the entry in the Capabilities array, located at the same index.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CapabilityDescriptions for each instance
# CapabilityDescriptions is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName CIM_CDROMDrive -Property CapabilityDescriptions |
    Select-Object -ExpandProperty CapabilityDescriptions
Captionstringread

A short textual description of the object.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Caption for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, Caption |
    Select-Object -Property DeviceID, Caption
CompressionMethodstringread

Free-form string that indicates the algorithm or tool used to compress the logical file. If the compression scheme is unknown or not described, use "Unknown". If the logical file is compressed, but the compression scheme is unknown or not described, use "Compressed". If the logical file is not compressed, use "Not Compressed".

Values (3)
ValueLabelDescription
UnknownUnknownThe compression scheme is unknown or not described.
CompressedCompressedThe logical file is compressed, but the compression scheme is unknown or not described
Not CompressedNot CompressedIf the logical file is not compressed
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CompressionMethod for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, CompressionMethod |
    Select-Object -Property DeviceID, CompressionMethod
ConfigManagerErrorCodeuint32read

Win32 Configuration Manager error code.

Values (32)
ValueLabelDescription
0This device is working properly.
1This device is not configured correctly.
2Windows cannot load the driver for this device.
3The driver for this device might be corrupted, or your system may be running low on memory or other resources.
4This device is not working properly. One of its drivers or your registry might be corrupted.
5The driver for this device needs a resource that Windows cannot manage.
6The boot configuration for this device conflicts with other devices.
7Cannot filter.
8The driver loader for the device is missing.
9This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly.
10This device cannot start.
11This device failed.
12This device cannot find enough free resources that it can use.
13Windows cannot verify this device's resources.
14This device cannot work properly until you restart your computer.
15This device is not working properly because there is probably a re-enumeration problem.
16Windows cannot identify all the resources this device uses.
17This device is asking for an unknown resource type.
18Reinstall the drivers for this device.
19Failure using the VxD loader.
20Your registry might be corrupted.
21System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device.
22This device is disabled.
23System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation.
24This device is not present, is not working properly, or does not have all its drivers installed.
25Windows is still setting up this device.
26Windows is still setting up this device.
27This device does not have valid log configuration.
28The drivers for this device are not installed.
29This device is disabled because the firmware of the device did not give it the required resources.
30This device is using an Interrupt Request (IRQ) resource that another device is using.
31This device is not working properly because Windows cannot load the drivers required for this device.
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ConfigManagerErrorCode for each instance
# Lookup table for ConfigManagerErrorCode (values documented by Microsoft)
$configManagerErrorCodeName = @{
    0 = 'This device is working properly'
    1 = 'This device is not configured correctly'
    2 = 'Windows cannot load the driver for this device'
    3 = 'The driver for this device might be corrupted, or your…'
    4 = 'This device is not working properly'
    5 = 'The driver for this device needs a resource that Windows…'
    6 = 'The boot configuration for this device conflicts with other…'
    7 = 'Cannot filter'
    8 = 'The driver loader for the device is missing'
    9 = 'This device is not working properly because the controlling…'
    10 = 'This device cannot start'
    11 = 'This device failed'
    12 = 'This device cannot find enough free resources that it can use'
    13 = 'Windows cannot verify this device''s resources'
    14 = 'This device cannot work properly until you restart your…'
    15 = 'This device is not working properly because there is…'
    16 = 'Windows cannot identify all the resources this device uses'
    17 = 'This device is asking for an unknown resource type'
    18 = 'Reinstall the drivers for this device'
    19 = 'Failure using the VxD loader'
    20 = 'Your registry might be corrupted'
    21 = 'System failure: Try changing the driver for this device'
    22 = 'This device is disabled'
    23 = 'System failure: Try changing the driver for this device'
    24 = 'This device is not present, is not working properly, or does…'
    25 = 'Windows is still setting up this device'
    26 = 'Windows is still setting up this device'
    27 = 'This device does not have valid log configuration'
    28 = 'The drivers for this device are not installed'
    29 = 'This device is disabled because the firmware of the device…'
    30 = 'This device is using an Interrupt Request (IRQ) resource…'
    31 = 'This device is not working properly because Windows cannot…'
}
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, ConfigManagerErrorCode |
    Select-Object -Property @(
        'DeviceID'
        @{ Name = 'ConfigManagerErrorCode'; Expression = { $configManagerErrorCodeName[[int]$_.ConfigManagerErrorCode] } }
    )
ConfigManagerUserConfigbooleanread

If TRUE, the device is using a user-defined configuration.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ConfigManagerUserConfig for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, ConfigManagerUserConfig |
    Select-Object -Property DeviceID, ConfigManagerUserConfig
CreationClassName keystringread

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.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CreationClassName for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, CreationClassName |
    Select-Object -Property DeviceID, CreationClassName
DefaultBlockSizeuint64read

Default block size, in bytes, for the device.

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

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of DefaultBlockSize for each instance
# DefaultBlockSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, DefaultBlockSize |
    Select-Object -Property @(
        'DeviceID'
        @{ Name = 'DefaultBlockSizeGB'; Expression = { [math]::Round($_.DefaultBlockSize / 1GB, 2) } }
    )
Descriptionstringread

A textual description of the object.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Description for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, Description |
    Select-Object -Property DeviceID, Description
DeviceID keystringread

Address or other identifying information to uniquely name the logical device.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of DeviceID for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID |
    Select-Object -Property DeviceID
ErrorClearedbooleanread

If TRUE, the error reported in the LastErrorCode property is now cleared.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorCleared for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, ErrorCleared |
    Select-Object -Property DeviceID, ErrorCleared
ErrorDescriptionstringread

Free-form string that supplies information about the error recorded in the LastErrorCode property and corrective actions to perform.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorDescription for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, ErrorDescription |
    Select-Object -Property DeviceID, ErrorDescription
ErrorMethodologystringread

Free-form string that describes the types of error detection and correction supported by the device.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorMethodology for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, ErrorMethodology |
    Select-Object -Property DeviceID, ErrorMethodology
InstallDatedatetimeread

Indicates when the object was installed. Lack of a value does not indicate that the object is not installed.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, InstallDate |
    Select-Object -Property DeviceID, InstallDate
LastErrorCodeuint32read

Last error code reported by the logical device.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of LastErrorCode for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, LastErrorCode |
    Select-Object -Property DeviceID, LastErrorCode
MaxBlockSizeuint64read

Maximum block size, in bytes, for media accessed by the device.

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

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of MaxBlockSize for each instance
# MaxBlockSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, MaxBlockSize |
    Select-Object -Property @(
        'DeviceID'
        @{ Name = 'MaxBlockSizeGB'; Expression = { [math]::Round($_.MaxBlockSize / 1GB, 2) } }
    )
MaxMediaSizeuint64read

Maximum size, in kilobytes, of media supported by this device. Kilobytes are interpreted as the number of bytes multiplied by 1000 (not the number of bytes multiplied by 1024).

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

Unit: kilobytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of MaxMediaSize for each instance
# MaxMediaSize is expressed in kilobytes: converted to GB
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, MaxMediaSize |
    Select-Object -Property @(
        'DeviceID'
        @{ Name = 'MaxMediaSizeGB'; Expression = { [math]::Round($_.MaxMediaSize / 1MB, 2) } }
    )
MinBlockSizeuint64read

Minimum block size, in bytes, for media accessed by the device.

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

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of MinBlockSize for each instance
# MinBlockSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, MinBlockSize |
    Select-Object -Property @(
        'DeviceID'
        @{ Name = 'MinBlockSizeGB'; Expression = { [math]::Round($_.MinBlockSize / 1GB, 2) } }
    )
Namestringread

Label by which the object is known. When subclassed, this property can be overridden to be a key property.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Name for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, Name |
    Select-Object -Property DeviceID, Name
NeedsCleaningbooleanread

If TRUE, the media access device needs cleaning. Whether manual or automatic cleaning is possible is indicated in the Capabilities array property.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of NeedsCleaning for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, NeedsCleaning |
    Select-Object -Property DeviceID, NeedsCleaning
NumberOfMediaSupporteduint32read

Maximum number of multiple individual media that can be supported or inserted.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of NumberOfMediaSupported for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, NumberOfMediaSupported |
    Select-Object -Property DeviceID, NumberOfMediaSupported
PNPDeviceIDstringread

Indicates the Win32 Plug and Play device identifier of the logical device.

Example: "*PNP030b"

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of PNPDeviceID for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, PNPDeviceID |
    Select-Object -Property DeviceID, PNPDeviceID
PowerManagementCapabilitiesuint16[]read

Indicates the specific power-related capabilities of the logical device.

Values (8)
ValueLabelDescription
0UnknownThe power-related capacities are unknown.
1Not SupportedPower-related capacities are not supported for this device.
2DisabledPower-related capacities have been disabled.
3EnabledThe power management features are currently enabled but the exact feature set is unknown or the information is unavailable.
4Power Saving Modes Entered AutomaticallyThe device can change its power state based on usage or other criteria.
5Power State SettableThe **SetPowerState** method is supported. This method is found on the parent CIM_LogicalDevice class and can be implemented. For more information, see Designing Managed Object Format (MOF) Classes.
6Power Cycling SupportedThe **SetPowerState** method can be invoked with the *PowerState* parameter set to 5 ("Power Cycle").
7Timed Power On SupportedThe **SetPowerState** method can be invoked with the *PowerState* parameter set to 5 ("Power Cycle") and the *Time* parameter set to a specific date and time, or interval, for power-on.
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of PowerManagementCapabilities for each instance
# Lookup table for PowerManagementCapabilities (values documented by Microsoft)
$powerManagementCapabilitiesName = @{
    0 = 'Unknown'
    1 = 'Not Supported'
    2 = 'Disabled'
    3 = 'Enabled'
    4 = 'Power Saving Modes Entered Automatically'
    5 = 'Power State Settable'
    6 = 'Power Cycling Supported'
    7 = 'Timed Power On Supported'
}
# PowerManagementCapabilities is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName CIM_CDROMDrive -Property PowerManagementCapabilities |
    Select-Object -ExpandProperty PowerManagementCapabilities |
    ForEach-Object -Process { $powerManagementCapabilitiesName[[int]$_] }
PowerManagementSupportedbooleanread

If TRUE, the device can be power managed, that is, put into a power-save state. If FALSE, the integer value 1 ("Not Supported") should be the only entry in the PowerManagementCapabilities array.

This property does not indicate whether power management features are currently enabled, or if enabled, which features are supported. For more information, see the PowerManagementCapabilities array.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of PowerManagementSupported for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, PowerManagementSupported |
    Select-Object -Property DeviceID, PowerManagementSupported
Statusstringread

String that indicates the current status of the object. Operational and non-operational status can be defined. Operational status can include "OK", "Degraded", and "Pred Fail". "Pred Fail" indicates that an element is functioning properly, but is predicting a failure (for example, a SMART-enabled hard disk drive).

Non-operational status can include "Error", "Starting", "Stopping", and "Service". "Service" can apply during disk mirror-resilvering, reloading a user permissions list, or other administrative work. Not all such work is online, but the managed element is neither "OK" nor in one of the other states.

Values include the following:

Values (12)
ValueLabelDescription
OKOK
ErrorError
DegradedDegraded
UnknownUnknown
Pred FailPred Fail
StartingStarting
StoppingStopping
ServiceService
StressedStressed
NonRecoverNonRecover
No ContactNo Contact
Lost CommLost Comm
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Status for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, Status |
    Select-Object -Property DeviceID, Status
StatusInfouint16read

State of the logical device. If this property does not apply to the logical device, the value 5 ("Not Applicable") should be used.

Values (5)
ValueLabelDescription
1Other
2Unknown
3Enabled
4Disabled
5Not Applicable
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of StatusInfo for each instance
# Lookup table for StatusInfo (values documented by Microsoft)
$statusInfoName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Enabled'
    4 = 'Disabled'
    5 = 'Not Applicable'
}
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, StatusInfo |
    Select-Object -Property @(
        'DeviceID'
        @{ Name = 'StatusInfo'; Expression = { $statusInfoName[[int]$_.StatusInfo] } }
    )
SystemCreationClassName keystringread

The scoping system's creation class name.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of SystemCreationClassName for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, SystemCreationClassName |
    Select-Object -Property DeviceID, SystemCreationClassName
SystemName keystringread

The scoping system's name.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of SystemName for each instance
Get-CimInstance -ClassName CIM_CDROMDrive -Property DeviceID, SystemName |
    Select-Object -Property DeviceID, SystemName

Remarks

The CIM_CDROMDrive class is derived from CIM_MediaAccessDevice.

WMI does not implement this class. For more information about classes derived from CIM_CDROMDrive, 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.

Inheritance

Superclass chain

  1. CIM_ManagedSystemElement
  2. CIM_LogicalElement
  3. CIM_LogicalDevice
  4. CIM_MediaAccessDevice
  5. CIM_CDROMDrive

Known subclasses

Requirements

Namespace
root/cimv2
Minimum client
Windows Vista
Minimum server
Windows Server 2008
MOF file
CIMWin32.mof
DLL
CIMWin32.dll
Class qualifiers

Abstract UUID("{8502C52B-5FBB-11D2-AAC1-006008C78BC7}") AMENDMENT

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.