Win32_DMAChannel

Win32 DMAChannel
root/cimv2dynamickey : DMAChannel

The Win32_DMAChannel WMI class represents a direct memory access (DMA) channel on a computer system running Windows.

On this page

Main example

List instances

# All instances of Win32_DMAChannel, with the main properties
Get-CimInstance -ClassName Win32_DMAChannel |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        'Name'
        'Caption'
        'Description'
        'Status'
        'InstallDate'
    )

Examples

Filter with WQL

# WQL filter evaluated by the provider: Availability = 3 (Available)
Get-CimInstance -ClassName Win32_DMAChannel -Filter 'Availability = 3' |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        'Name'
        'Caption'
        'Description'
        'Status'
        'InstallDate'
    )

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Decode numeric values

# Lookup table for Availability (values documented by Microsoft)
$availabilityName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Available'
    4 = 'In Use/Not Available'
    5 = 'In Use and Available/Shareable'
}
# Lookup table for ByteMode (values documented by Microsoft)
$byteModeName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Not execute in ''count by byte'' mode'
    4 = 'Execute in ''count by byte'' mode'
}

Get-CimInstance -ClassName Win32_DMAChannel |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        'Name'
        'Caption'
        'Description'
        'Status'
        'InstallDate'
    )

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 Win32_DMAChannel |
        Select-Object -Property @(
            'CSName'
            'DMAChannel'
            'Name'
            'Caption'
            '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 Win32_DMAChannel
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

19 of 19 properties
NameTypeAccessDescription
AddressSizeuint16read

DMA channel address size in bits. Permissible values are 8, 16, 32, or 64 bits. If unknown, enter 0 (zero).

(0)

(8)

(16)

(32)

(64)

Unit: bits

Code
# Value of AddressSize for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, AddressSize |
    Select-Object -Property CSName, DMAChannel, AddressSize
Availabilityuint16read

Availability of the DMA. This property is inherited from CIM_DMA.

Values (5)
ValueLabelDescription
1Other
2Unknown
3Available
4In Use/Not AvailableIn Use or Not Available
5In Use and Available/ShareableIn Use and Available or Sharable
Code
# Value of Availability for each instance
# Lookup table for Availability (values documented by Microsoft)
$availabilityName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Available'
    4 = 'In Use/Not Available'
    5 = 'In Use and Available/Shareable'
}
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, Availability |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        @{ Name = 'Availability'; Expression = { $availabilityName[[int]$_.Availability] } }
    )
BurstModebooleanread

Indicates whether or not the DMA channel supports burst mode.

Code
# Value of BurstMode for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, BurstMode |
    Select-Object -Property CSName, DMAChannel, BurstMode
ByteModeuint16read

DMA execution mode.

Values (4)
ValueLabelDescription
1Other
2Unknown
3Not execute in 'count by byte' modeDoes not execute in "count by byte" mode
4Execute in 'count by byte' modeExecute in "count by byte" mode
Code
# Value of ByteMode for each instance
# Lookup table for ByteMode (values documented by Microsoft)
$byteModeName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Not execute in ''count by byte'' mode'
    4 = 'Execute in ''count by byte'' mode'
}
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, ByteMode |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        @{ Name = 'ByteMode'; Expression = { $byteModeName[[int]$_.ByteMode] } }
    )
Captionstringread

Short description of the object a one-line string.

Code
# Value of Caption for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, Caption |
    Select-Object -Property CSName, DMAChannel, Caption
ChannelTiminguint16read

DMA channel timing.

Values (6)
ValueLabelDescription
1Other
2Unknown
3ISA Compatible
4Type A
5Type B
6Type F
Code
# Value of ChannelTiming for each instance
# Lookup table for ChannelTiming (values documented by Microsoft)
$channelTimingName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'ISA Compatible'
    4 = 'Type A'
    5 = 'Type B'
    6 = 'Type F'
}
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, ChannelTiming |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        @{ Name = 'ChannelTiming'; Expression = { $channelTimingName[[int]$_.ChannelTiming] } }
    )
CreationClassName keystringread

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

Code
# Value of CreationClassName for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, CreationClassName |
    Select-Object -Property CSName, DMAChannel, CreationClassName
CSCreationClassName keystringread

Name of the scoping computer system creation class.

Code
# Value of CSCreationClassName for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, CSCreationClassName |
    Select-Object -Property CSName, DMAChannel, CSCreationClassName
CSName keystringread

Name of the scoping computer system.

Code
# Value of CSName for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property DMAChannel, CSName |
    Select-Object -Property DMAChannel, CSName
Descriptionstringread

Description of the object.

Code
# Value of Description for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, Description |
    Select-Object -Property CSName, DMAChannel, Description
DMAChannel keyuint32read

DMA channel number, part of the object's key value.

Code
# Value of DMAChannel for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel |
    Select-Object -Property CSName, DMAChannel
InstallDatedatetimeread

Date and time the object was installed. This property does not need a value to indicate that the object is installed.

Code
# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, InstallDate |
    Select-Object -Property CSName, DMAChannel, InstallDate
MaxTransferSizeuint32read

Maximum number of bytes that can be transferred by this DMA channel. If unknown, enter 0 (zero).

Unit: bytes

Code
# Value of MaxTransferSize for each instance
# MaxTransferSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, MaxTransferSize |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        @{ Name = 'MaxTransferSizeGB'; Expression = { [math]::Round($_.MaxTransferSize / 1GB, 2) } }
    )
Namestringread

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

Code
# Value of Name for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, Name |
    Select-Object -Property CSName, DMAChannel, Name
Portuint32read

DMA port used by the host bus adapter. This is meaningful for MCA-type buses.

Example: 12

Code
# Value of Port for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, Port |
    Select-Object -Property CSName, DMAChannel, Port
Statusstringread

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet 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
# Value of Status for each instance
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, Status |
    Select-Object -Property CSName, DMAChannel, Status
TransferWidthsuint16[]read

Array of all the transfer widths (in bits) supported by this DMA channel. If unknown, enter 0 (zero).

(0)

(8)

(16)

(32)

(64)

(128)

Unit: bits

Code
# Value of TransferWidths for each instance
# TransferWidths is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_DMAChannel -Property TransferWidths |
    Select-Object -ExpandProperty TransferWidths
TypeCTiminguint16read

Support for C type (burst) timing.

Values (5)
ValueLabelDescription
1Other
2Unknown
3ISA Compatible
4Not Supported
5Supported
Code
# Value of TypeCTiming for each instance
# Lookup table for TypeCTiming (values documented by Microsoft)
$typeCTimingName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'ISA Compatible'
    4 = 'Not Supported'
    5 = 'Supported'
}
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, TypeCTiming |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        @{ Name = 'TypeCTiming'; Expression = { $typeCTimingName[[int]$_.TypeCTiming] } }
    )
WordModeuint16read

DMA execution mode.

Values (4)
ValueLabelDescription
1Other
2Unknown
3Not execute in 'count by word' modeDoes not execute in "count by word" mode
4Execute in 'count by word' modeExecute in "count by word" mode
Code
# Value of WordMode for each instance
# Lookup table for WordMode (values documented by Microsoft)
$wordModeName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Not execute in ''count by word'' mode'
    4 = 'Execute in ''count by word'' mode'
}
Get-CimInstance -ClassName Win32_DMAChannel -Property CSName, DMAChannel, WordMode |
    Select-Object -Property @(
        'CSName'
        'DMAChannel'
        @{ Name = 'WordMode'; Expression = { $wordModeName[[int]$_.WordMode] } }
    )

Remarks

The Win32_DMAChannel class is derived from CIM_DMA.

Inheritance

Superclass chain

  1. CIM_ManagedSystemElement
  2. CIM_LogicalElement
  3. CIM_SystemResource
  4. CIM_DMA
  5. Win32_DMAChannel

Known subclasses

No known subclass.

Requirements

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

Dynamic Provider("CIMWin32") UUID("{8502C4D1-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.