Represents a PnP device property consisting of an array of real64 elements.
Methods
Win32_PnPDevicePropertyReal64Array has no methods.
Properties
Win32_PnPDevicePropertyReal64Array returns 5 properties:
'Data','DeviceID','Key','KeyName','Type'
Unless explicitly marked as writeable, all properties are read-only.
Data
The property value.
DeviceID
Identifies the PnP device.
Key
The value of the Key Name-Value pair that identifies the Data property.
KeyName
The name of the Key Name-Value pair that identifies the Data property.
Type
The type of the Data property.
Type returns a numeric value. To translate it into a meaningful text, use any of the following approaches:
Use a PowerShell Hashtable
$Type_map = @{
0 = 'Empty'
1 = 'Null'
2 = 'SByte'
3 = 'Byte'
4 = 'Int16'
5 = 'UInt16'
6 = 'Int32'
7 = 'Uint32'
8 = 'Int64'
9 = 'UInt64'
10 = 'Float'
11 = 'Double'
12 = 'Decimal'
13 = 'Guid'
14 = 'Currency'
15 = 'Date'
16 = 'FileTime'
17 = 'Boolean'
18 = 'String'
19 = 'SecurityDescriptor'
20 = 'SecurityDescriptorString'
21 = 'DEVPROPKEY'
22 = 'DEVPROPTYPE'
23 = 'Error'
24 = 'NTStatus'
25 = 'StringIndirect'
4098 = 'SByteArray'
4099 = 'Binary'
4100 = 'Int16Array'
4101 = 'UInt16Array'
4102 = 'Int64Array'
4103 = 'UInt64Array'
4104 = 'FloatArray'
4105 = 'DoubleArray'
4106 = 'DecimalArray'
4107 = 'GuidArray'
4108 = 'CurrencyArray'
4109 = 'DateArray'
4110 = 'FileTimeArray'
4111 = 'BooleanArray'
4112 = 'StringList'
4113 = 'SecurityDescriptorList'
8210 = 'SecurityDescriptorStringList'
8211 = 'DEVPROPKEYArray'
8212 = 'DEVPROPTYPEArray'
4117 = 'ErrorArray'
4118 = 'NTStatusArray'
4119 = 'StringIndirectList'
4120 = 'Unknown - check in devpropdef.h'
8217 = 'TBD'
}
Use a switch statement
switch([int]$value)
{
0 {'Empty'}
1 {'Null'}
2 {'SByte'}
3 {'Byte'}
4 {'Int16'}
5 {'UInt16'}
6 {'Int32'}
7 {'Uint32'}
8 {'Int64'}
9 {'UInt64'}
10 {'Float'}
11 {'Double'}
12 {'Decimal'}
13 {'Guid'}
14 {'Currency'}
15 {'Date'}
16 {'FileTime'}
17 {'Boolean'}
18 {'String'}
19 {'SecurityDescriptor'}
20 {'SecurityDescriptorString'}
21 {'DEVPROPKEY'}
22 {'DEVPROPTYPE'}
23 {'Error'}
24 {'NTStatus'}
25 {'StringIndirect'}
4098 {'SByteArray'}
4099 {'Binary'}
4100 {'Int16Array'}
4101 {'UInt16Array'}
4102 {'Int64Array'}
4103 {'UInt64Array'}
4104 {'FloatArray'}
4105 {'DoubleArray'}
4106 {'DecimalArray'}
4107 {'GuidArray'}
4108 {'CurrencyArray'}
4109 {'DateArray'}
4110 {'FileTimeArray'}
4111 {'BooleanArray'}
4112 {'StringList'}
4113 {'SecurityDescriptorList'}
8210 {'SecurityDescriptorStringList'}
8211 {'DEVPROPKEYArray'}
8212 {'DEVPROPTYPEArray'}
4117 {'ErrorArray'}
4118 {'NTStatusArray'}
4119 {'StringIndirectList'}
4120 {'Unknown - check in devpropdef.h'}
8217 {'TBD'}
default {"$value"}
}
Use Enum structure
Enum EnumType
{
Empty = 0
Null = 1
SByte = 2
Byte = 3
Int16 = 4
UInt16 = 5
Int32 = 6
Uint32 = 7
Int64 = 8
UInt64 = 9
Float = 10
Double = 11
Decimal = 12
Guid = 13
Currency = 14
Date = 15
FileTime = 16
Boolean = 17
String = 18
SecurityDescriptor = 19
SecurityDescriptorString = 20
DEVPROPKEY = 21
DEVPROPTYPE = 22
Error = 23
NTStatus = 24
StringIndirect = 25
SByteArray = 4098
Binary = 4099
Int16Array = 4100
UInt16Array = 4101
Int64Array = 4102
UInt64Array = 4103
FloatArray = 4104
DoubleArray = 4105
DecimalArray = 4106
GuidArray = 4107
CurrencyArray = 4108
DateArray = 4109
FileTimeArray = 4110
BooleanArray = 4111
StringList = 4112
SecurityDescriptorList = 4113
SecurityDescriptorStringList = 8210
DEVPROPKEYArray = 8211
DEVPROPTYPEArray = 8212
ErrorArray = 4117
NTStatusArray = 4118
StringIndirectList = 4119
Unknown_check_in_devpropdefh = 4120
TBD = 8217
}
Examples
Use $Type_map in a calculated property for Select-Object
<#
this example uses a hashtable to translate raw numeric values for
property "Type" to friendly text
Note: to use other properties than "Type", look up the appropriate
translation hashtable for the property you would like to use instead.
#>
#region define hashtable to translate raw values to friendly text
# Please note: this hashtable is specific for property "Type"
# to translate other properties, use their translation table instead
$Type_map = @{
0 = 'Empty'
1 = 'Null'
2 = 'SByte'
3 = 'Byte'
4 = 'Int16'
5 = 'UInt16'
6 = 'Int32'
7 = 'Uint32'
8 = 'Int64'
9 = 'UInt64'
10 = 'Float'
11 = 'Double'
12 = 'Decimal'
13 = 'Guid'
14 = 'Currency'
15 = 'Date'
16 = 'FileTime'
17 = 'Boolean'
18 = 'String'
19 = 'SecurityDescriptor'
20 = 'SecurityDescriptorString'
21 = 'DEVPROPKEY'
22 = 'DEVPROPTYPE'
23 = 'Error'
24 = 'NTStatus'
25 = 'StringIndirect'
4098 = 'SByteArray'
4099 = 'Binary'
4100 = 'Int16Array'
4101 = 'UInt16Array'
4102 = 'Int64Array'
4103 = 'UInt64Array'
4104 = 'FloatArray'
4105 = 'DoubleArray'
4106 = 'DecimalArray'
4107 = 'GuidArray'
4108 = 'CurrencyArray'
4109 = 'DateArray'
4110 = 'FileTimeArray'
4111 = 'BooleanArray'
4112 = 'StringList'
4113 = 'SecurityDescriptorList'
8210 = 'SecurityDescriptorStringList'
8211 = 'DEVPROPKEYArray'
8212 = 'DEVPROPTYPEArray'
4117 = 'ErrorArray'
4118 = 'NTStatusArray'
4119 = 'StringIndirectList'
4120 = 'Unknown - check in devpropdef.h'
8217 = 'TBD'
}
#endregion define hashtable
#region define calculated property (to be used with Select-Object)
<#
a calculated property is defined by a hashtable with keys "Name" and "Expression"
"Name" defines the name of the property (in this example, it is "Type", but you can rename it to anything else)
"Expression" defines a scriptblock that calculates the content of this property
in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
value to its friendly text counterpart:
#>
$Type = @{
Name = 'Type'
Expression = {
# property is an array, so process all values
$value = $_.Type)
$Type_map[[int]$value]
}
}
#endregion define calculated property
# retrieve the instances, and output the properties "Caption" and "Type". The latter
# is defined by the hashtable in $Type:
Get-CimInstance -Class Win32_PnPDevicePropertyReal64Array | Select-Object -Property Caption, $Type
# ...or dump content of property Type:
$friendlyValues = Get-CimInstance -Class Win32_PnPDevicePropertyReal64Array |
Select-Object -Property $Type |
Select-Object -ExpandProperty Type
# output values
$friendlyValues
# output values as comma separated list
$friendlyValues -join ', '
# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use $Type_map to directly translate raw values from an instance
<#
this example uses a hashtable to manually translate raw numeric values
for property "Win32_PnPDevicePropertyReal64Array" to friendly text. This approach is ideal when
there is just one instance to work with.
Note: to use other properties than "Win32_PnPDevicePropertyReal64Array", look up the appropriate
translation hashtable for the property you would like to use instead.
#>
#region define hashtable to translate raw values to friendly text
# Please note: this hashtable is specific for property "Win32_PnPDevicePropertyReal64Array"
# to translate other properties, use their translation table instead
$Type_map = @{
0 = 'Empty'
1 = 'Null'
2 = 'SByte'
3 = 'Byte'
4 = 'Int16'
5 = 'UInt16'
6 = 'Int32'
7 = 'Uint32'
8 = 'Int64'
9 = 'UInt64'
10 = 'Float'
11 = 'Double'
12 = 'Decimal'
13 = 'Guid'
14 = 'Currency'
15 = 'Date'
16 = 'FileTime'
17 = 'Boolean'
18 = 'String'
19 = 'SecurityDescriptor'
20 = 'SecurityDescriptorString'
21 = 'DEVPROPKEY'
22 = 'DEVPROPTYPE'
23 = 'Error'
24 = 'NTStatus'
25 = 'StringIndirect'
4098 = 'SByteArray'
4099 = 'Binary'
4100 = 'Int16Array'
4101 = 'UInt16Array'
4102 = 'Int64Array'
4103 = 'UInt64Array'
4104 = 'FloatArray'
4105 = 'DoubleArray'
4106 = 'DecimalArray'
4107 = 'GuidArray'
4108 = 'CurrencyArray'
4109 = 'DateArray'
4110 = 'FileTimeArray'
4111 = 'BooleanArray'
4112 = 'StringList'
4113 = 'SecurityDescriptorList'
8210 = 'SecurityDescriptorStringList'
8211 = 'DEVPROPKEYArray'
8212 = 'DEVPROPTYPEArray'
4117 = 'ErrorArray'
4118 = 'NTStatusArray'
4119 = 'StringIndirectList'
4120 = 'Unknown - check in devpropdef.h'
8217 = 'TBD'
}
#endregion define hashtable
# get one instance:
$instance = Get-CimInstance -Class Win32_PnPDevicePropertyReal64Array | Select-Object -First 1
<#
IMPORTANT: this example processes only one instance to illustrate
the number-to-text translation. To process all instances, replace
"Select-Object -First 1" with a "Foreach-Object" loop, and use
the iterator variable $_ instead of $instance
#>
# query the property
$rawValue = $instance.Type
# translate raw value to friendly text:
$friendlyName = $Type_map[[int]$rawValue]
# output value
$friendlyName
Use a switch statement inside a calculated property for Select-Object
<#
this example uses a switch clause to translate raw numeric
values for property "Type" to friendly text. The switch
clause is embedded into a calculated property so there is
no need to refer to external variables for translation.
Note: to use other properties than "Type", look up the appropriate
translation switch clause for the property you would like to use instead.
#>
#region define calculated property (to be used with Select-Object)
<#
a calculated property is defined by a hashtable with keys "Name" and "Expression"
"Name" defines the name of the property (in this example, it is "Type", but you can rename it to anything else)
"Expression" defines a scriptblock that calculates the content of this property
in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
value to its friendly text counterpart:
#>
$Type = @{
Name = 'Type'
Expression = {
# property is an array, so process all values
$value = $_.BiosCharacteristics
switch([int]$value)
{
0 {'Empty'}
1 {'Null'}
2 {'SByte'}
3 {'Byte'}
4 {'Int16'}
5 {'UInt16'}
6 {'Int32'}
7 {'Uint32'}
8 {'Int64'}
9 {'UInt64'}
10 {'Float'}
11 {'Double'}
12 {'Decimal'}
13 {'Guid'}
14 {'Currency'}
15 {'Date'}
16 {'FileTime'}
17 {'Boolean'}
18 {'String'}
19 {'SecurityDescriptor'}
20 {'SecurityDescriptorString'}
21 {'DEVPROPKEY'}
22 {'DEVPROPTYPE'}
23 {'Error'}
24 {'NTStatus'}
25 {'StringIndirect'}
4098 {'SByteArray'}
4099 {'Binary'}
4100 {'Int16Array'}
4101 {'UInt16Array'}
4102 {'Int64Array'}
4103 {'UInt64Array'}
4104 {'FloatArray'}
4105 {'DoubleArray'}
4106 {'DecimalArray'}
4107 {'GuidArray'}
4108 {'CurrencyArray'}
4109 {'DateArray'}
4110 {'FileTimeArray'}
4111 {'BooleanArray'}
4112 {'StringList'}
4113 {'SecurityDescriptorList'}
8210 {'SecurityDescriptorStringList'}
8211 {'DEVPROPKEYArray'}
8212 {'DEVPROPTYPEArray'}
4117 {'ErrorArray'}
4118 {'NTStatusArray'}
4119 {'StringIndirectList'}
4120 {'Unknown - check in devpropdef.h'}
8217 {'TBD'}
default {"$value"}
}
}
}
#endregion define calculated property
# retrieve all instances...
Get-CimInstance -ClassName Win32_PnPDevicePropertyReal64Array |
# ...and output properties "Caption" and "Type". The latter is defined
# by the hashtable in $Type:
Select-Object -Property Caption, $Type
Use the Enum from above to auto-translate the code values
<#
this example translates raw values by means of type conversion
the friendly names are defined as enumeration using the
keyword "enum" (PowerShell 5 or better)
The raw value(s) are translated to friendly text by
simply converting them into the enum type.
Note: to use other properties than "Win32_PnPDevicePropertyReal64Array", look up the appropriate
enum definition for the property you would like to use instead.
#>
#region define enum with value-to-text translation:
Enum EnumType
{
Empty = 0
Null = 1
SByte = 2
Byte = 3
Int16 = 4
UInt16 = 5
Int32 = 6
Uint32 = 7
Int64 = 8
UInt64 = 9
Float = 10
Double = 11
Decimal = 12
Guid = 13
Currency = 14
Date = 15
FileTime = 16
Boolean = 17
String = 18
SecurityDescriptor = 19
SecurityDescriptorString = 20
DEVPROPKEY = 21
DEVPROPTYPE = 22
Error = 23
NTStatus = 24
StringIndirect = 25
SByteArray = 4098
Binary = 4099
Int16Array = 4100
UInt16Array = 4101
Int64Array = 4102
UInt64Array = 4103
FloatArray = 4104
DoubleArray = 4105
DecimalArray = 4106
GuidArray = 4107
CurrencyArray = 4108
DateArray = 4109
FileTimeArray = 4110
BooleanArray = 4111
StringList = 4112
SecurityDescriptorList = 4113
SecurityDescriptorStringList = 8210
DEVPROPKEYArray = 8211
DEVPROPTYPEArray = 8212
ErrorArray = 4117
NTStatusArray = 4118
StringIndirectList = 4119
Unknown_check_in_devpropdefh = 4120
TBD = 8217
}
#endregion define enum
# get one instance:
$instance = Get-CimInstance -Class Win32_PnPDevicePropertyReal64Array | Select-Object -First 1
<#
IMPORTANT: this example processes only one instance to focus on
the number-to-text type conversion.
To process all instances, replace "Select-Object -First 1"
with a "Foreach-Object" loop, and use the iterator variable
$_ instead of $instance
#>
# query the property:
$rawValue = $instance.Type
#region using strict type conversion
<#
Note: strict type conversion fails if the raw value is
not defined by the enum. So if the list of allowable values
was extended and the enum does not match the value,
an exception is thrown
#>
# convert the property to the enum **Type**
[EnumType]$rawValue
# get a comma-separated string:
[EnumType]$rawValue -join ','
#endregion
#region using operator "-as"
<#
Note: the operator "-as" accepts values not defined
by the enum and returns $null instead of throwing
an exception
#>
$rawValue -as [EnumType]
#endregion
Enums must cover all possible values. If Type returns a value that is not defined in the enum, an exception occurs. The exception reports the value that was missing in the enum. To fix, add the missing value to the enum.
Examples
List all instances of Win32_PnPDevicePropertyReal64Array
Get-CimInstance -ClassName Win32_PnPDevicePropertyReal64Array
Learn more about Get-CimInstance
and the deprecated Get-WmiObject
.
View all properties
Get-CimInstance -ClassName Win32_PnPDevicePropertyReal64Array -Property *
View key properties only
Get-CimInstance -ClassName Win32_PnPDevicePropertyReal64Array -Property *
Selecting Properties
To select only some properties, pipe the results to Select-Object -Property a,b,c
with a comma-separated list of the properties you require. Wildcards are permitted.
Get-CimInstance
always returns all properties but only retrieves the ones that you specify. All other properties are empty but still present. That’s why you need to pipe the results into Select-Object
if you want to limit the visible properties, i.e. for reporting.
Selecting Properties
The code below lists all available properties. Remove the ones you do not need:
$properties = 'Data',
'DeviceID',
'Key',
'KeyName',
'Type'
Get-CimInstance -ClassName Win32_PnPDevicePropertyReal64Array | Select-Object -Property $properties
Limiting Network Bandwidth
If you work remotely, it makes sense to limit network bandwidth by filtering the properties on the server side, too:
Get-CimInstance -Class Win32_PnPDevicePropertyReal64Array -Property $property |
Select-Object -Property $property
Selecting Instances
To select some instances, use Get-CimInstance and a WMI Query. The wildcard character in WMI Queries is % (and not “*”).
The parameter -Filter runs a simple query.
Listing all instances where the property Caption starts with “A”
Get-CimInstance -Class Win32_PnPDevicePropertyReal64Array -Filter 'Caption LIKE "a%"'
Using a WQL Query
The parameter -Query uses a query similar to SQL and combines the parameters -Filter and -Property. This returns all instances where the property Caption starts with “A”, and returns the properties specified:
Get-CimInstance -Query "SELECT Data, KeyName, Key, DeviceID FROM Win32_PnPDevicePropertyReal64Array WHERE Caption LIKE 'a%'"
Any property you did not specify is still present but empty. You might need to use Select-Object to remove all unwanted properties:
Get-CimInstance -Query "SELECT Data, KeyName, Key, DeviceID FROM Win32_PnPDevicePropertyReal64Array WHERE Caption LIKE 'a%'" | Select-Object -Property Data, KeyName, Key, DeviceID
Accessing Remote Computers
To access remote systems, you need to have proper permissions. User the parameter -ComputerName to access one or more remote systems.
Authenticating as Current User
# one or more computer names or IP addresses:
$list = 'server1', 'server2'
# authenticate with your current identity:
$result = Get-CimInstance -ClassName Win32_PnPDevicePropertyReal64Array -ComputerName $list
$result
Authenticating as Different User
Use a CIMSession object to authenticate with a new identity:
# one or more computer names or IP addresses:
$list = 'server1', 'server2'
# authenticate with a different identity:
$cred = Get-Credential -Message 'Authenticate to retrieve WMI information:'
$session = New-CimSession -ComputerName $list -Credential $cred
$result = Get-CimInstance Win32_PnPDevicePropertyReal64Array -CimSession $session
# remove the session after use (if you do not plan to re-use it later)
Remove-CimSession -CimSession $session
$result
Learn more about accessing remote computers.
More Examples
Visit the Example Page for more examples.
Requirements
To use Win32_PnPDevicePropertyReal64Array, the following requirements apply:
PowerShell
Get-CimInstance
was introduced with PowerShell Version 3.0, which in turn was introduced on clients with Windows 8 and on servers with Windows Server 2012.
If necessary, update Windows PowerShell to Windows PowerShell 5.1, or install PowerShell 7 side-by-side.
Operating System
Win32_PnPDevicePropertyReal64Array was introduced on clients with Windows 10 [desktop apps only] and on servers with Windows Server 2016.
Namespace
Win32_PnPDevicePropertyReal64Array lives in the Namespace Root\CIMV2. This is the default namespace. There is no need to use the -Namespace parameter in Get-CimInstance
.
Implementation
Win32_PnPDevicePropertyReal64Array is implemented in CIMWin32.dll and defined in Cimwin32.mof. Both files are located in the folder C:\Windows\system32\wbem
:
explorer $env:windir\system32\wbem
notepad $env:windir\system32\wbem\Cimwin32.mof