PNPDeviceID - property in ROOT\CIMV2\ms_409 namespace

PNPDeviceID in other namespaces

List of classes with PNPDeviceID local property in ROOT\CIMV2\ms_409 namespace

propertyClassOrigin
PNPDeviceIDCIM_LogicalDeviceCIM_LogicalDevice

List of classes with PNPDeviceID derived property in ROOT\CIMV2\ms_409 namespace

propertyClassOrigin
PNPDeviceIDCIM_AggregatePExtentCIM_LogicalDevice
PNPDeviceIDCIM_AggregatePSExtentCIM_LogicalDevice
PNPDeviceIDCIM_AlarmDeviceCIM_LogicalDevice
PNPDeviceIDCIM_BatteryCIM_LogicalDevice
PNPDeviceIDCIM_BinarySensorCIM_LogicalDevice
PNPDeviceIDCIM_CacheMemoryCIM_LogicalDevice
PNPDeviceIDCIM_CDROMDriveCIM_LogicalDevice
PNPDeviceIDCIM_ControllerCIM_LogicalDevice
PNPDeviceIDCIM_CoolingDeviceCIM_LogicalDevice
PNPDeviceIDCIM_CurrentSensorCIM_LogicalDevice
PNPDeviceIDCIM_DesktopMonitorCIM_LogicalDevice
PNPDeviceIDCIM_DiscreteSensorCIM_LogicalDevice
PNPDeviceIDCIM_DiskDriveCIM_LogicalDevice
PNPDeviceIDCIM_DisketteDriveCIM_LogicalDevice
PNPDeviceIDCIM_DiskPartitionCIM_LogicalDevice
PNPDeviceIDCIM_DisplayCIM_LogicalDevice
PNPDeviceIDCIM_FanCIM_LogicalDevice
PNPDeviceIDCIM_FlatPanelCIM_LogicalDevice
PNPDeviceIDCIM_HeatPipeCIM_LogicalDevice
PNPDeviceIDCIM_InfraredControllerCIM_LogicalDevice
PNPDeviceIDCIM_KeyboardCIM_LogicalDevice
PNPDeviceIDCIM_LogicalDiskCIM_LogicalDevice
PNPDeviceIDCIM_MagnetoOpticalDriveCIM_LogicalDevice
PNPDeviceIDCIM_ManagementControllerCIM_LogicalDevice
PNPDeviceIDCIM_MediaAccessDeviceCIM_LogicalDevice
PNPDeviceIDCIM_MemoryCIM_LogicalDevice
PNPDeviceIDCIM_MultiStateSensorCIM_LogicalDevice
PNPDeviceIDCIM_NetworkAdapterCIM_LogicalDevice
PNPDeviceIDCIM_NonVolatileStorageCIM_LogicalDevice
PNPDeviceIDCIM_NumericSensorCIM_LogicalDevice
PNPDeviceIDCIM_ParallelControllerCIM_LogicalDevice
PNPDeviceIDCIM_PCIControllerCIM_LogicalDevice
PNPDeviceIDCIM_PCMCIAControllerCIM_LogicalDevice
PNPDeviceIDCIM_PCVideoControllerCIM_LogicalDevice
PNPDeviceIDCIM_PhysicalExtentCIM_LogicalDevice
PNPDeviceIDCIM_PointingDeviceCIM_LogicalDevice
PNPDeviceIDCIM_PotsModemCIM_LogicalDevice
PNPDeviceIDCIM_PowerSupplyCIM_LogicalDevice
PNPDeviceIDCIM_PrinterCIM_LogicalDevice
PNPDeviceIDCIM_ProcessorCIM_LogicalDevice
PNPDeviceIDCIM_ProtectedSpaceExtentCIM_LogicalDevice
PNPDeviceIDCIM_RefrigerationCIM_LogicalDevice
PNPDeviceIDCIM_ScannerCIM_LogicalDevice
PNPDeviceIDCIM_SCSIControllerCIM_LogicalDevice
PNPDeviceIDCIM_SensorCIM_LogicalDevice
PNPDeviceIDCIM_SerialControllerCIM_LogicalDevice
PNPDeviceIDCIM_StorageExtentCIM_LogicalDevice
PNPDeviceIDCIM_StorageVolumeCIM_LogicalDevice
PNPDeviceIDCIM_TachometerCIM_LogicalDevice
PNPDeviceIDCIM_TapeDriveCIM_LogicalDevice
PNPDeviceIDCIM_TemperatureSensorCIM_LogicalDevice
PNPDeviceIDCIM_UninterruptiblePowerSupplyCIM_LogicalDevice
PNPDeviceIDCIM_USBControllerCIM_LogicalDevice
PNPDeviceIDCIM_USBDeviceCIM_LogicalDevice
PNPDeviceIDCIM_USBHubCIM_LogicalDevice
PNPDeviceIDCIM_UserDeviceCIM_LogicalDevice
PNPDeviceIDCIM_VideoControllerCIM_LogicalDevice
PNPDeviceIDCIM_VolatileStorageCIM_LogicalDevice
PNPDeviceIDCIM_VoltageSensorCIM_LogicalDevice
PNPDeviceIDCIM_VolumeSetCIM_LogicalDevice
PNPDeviceIDCIM_WORMDriveCIM_LogicalDevice
PNPDeviceIDWin32_1394ControllerCIM_LogicalDevice
PNPDeviceIDWin32_BatteryCIM_LogicalDevice
PNPDeviceIDWin32_BusCIM_LogicalDevice
PNPDeviceIDWin32_CacheMemoryCIM_LogicalDevice
PNPDeviceIDWin32_CDROMDriveCIM_LogicalDevice
PNPDeviceIDWin32_CurrentProbeCIM_LogicalDevice
PNPDeviceIDWin32_DesktopMonitorCIM_LogicalDevice
PNPDeviceIDWin32_DiskDriveCIM_LogicalDevice
PNPDeviceIDWin32_DiskPartitionCIM_LogicalDevice
PNPDeviceIDWin32_FanCIM_LogicalDevice
PNPDeviceIDWin32_FloppyControllerCIM_LogicalDevice
PNPDeviceIDWin32_FloppyDriveCIM_LogicalDevice
PNPDeviceIDWin32_HeatPipeCIM_LogicalDevice
PNPDeviceIDWin32_IDEControllerCIM_LogicalDevice
PNPDeviceIDWin32_InfraredDeviceCIM_LogicalDevice
PNPDeviceIDWin32_KeyboardCIM_LogicalDevice
PNPDeviceIDWin32_LogicalDiskCIM_LogicalDevice
PNPDeviceIDWin32_MappedLogicalDiskCIM_LogicalDevice
PNPDeviceIDWin32_MemoryArrayCIM_LogicalDevice
PNPDeviceIDWin32_MemoryDeviceCIM_LogicalDevice
PNPDeviceIDWin32_MotherboardDeviceCIM_LogicalDevice
PNPDeviceIDWin32_NetworkAdapterCIM_LogicalDevice
PNPDeviceIDWin32_ParallelPortCIM_LogicalDevice
PNPDeviceIDWin32_PCMCIAControllerCIM_LogicalDevice
PNPDeviceIDWin32_PnPEntityCIM_LogicalDevice
PNPDeviceIDWin32_PointingDeviceCIM_LogicalDevice
PNPDeviceIDWin32_PortableBatteryCIM_LogicalDevice
PNPDeviceIDWin32_POTSModemCIM_LogicalDevice
PNPDeviceIDWin32_ProcessorCIM_LogicalDevice
PNPDeviceIDWin32_RefrigerationCIM_LogicalDevice
PNPDeviceIDWin32_SCSIControllerCIM_LogicalDevice
PNPDeviceIDWin32_SerialPortCIM_LogicalDevice
PNPDeviceIDWin32_SMBIOSMemoryCIM_LogicalDevice
PNPDeviceIDWin32_SoundDeviceCIM_LogicalDevice
PNPDeviceIDWin32_TapeDriveCIM_LogicalDevice
PNPDeviceIDWin32_TemperatureProbeCIM_LogicalDevice
PNPDeviceIDWin32_USBControllerCIM_LogicalDevice
PNPDeviceIDWin32_USBHubCIM_LogicalDevice
PNPDeviceIDWin32_VideoControllerCIM_LogicalDevice
PNPDeviceIDWin32_VoltageProbeCIM_LogicalDevice
PNPDeviceIDWin32_VolumeCIM_LogicalDevice

Code samples for PNPDeviceID property

Get instance of WMI class using GetObject, PNPDeviceID property of CIM_Printer

Short VBS code - get a single specified instance of CIM_Printer class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\CIMV2\ms_409:" + _
 "CIM_Printer.PropertyName=""SomeText""")
Wscript.Echo wmiObject.PNPDeviceID 'or other property name, see properties
See more VBS samples of CIM_Printer class

WMI query - sample windows WQL with C#, PNPDeviceID property of CIM_Printer

Get a specified instance of CIM_Printer by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\CIMV2\\ms_409");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM CIM_Printer Where PropertyName=\"SomeText\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("PNPDeviceID : {0}", m["PNPDeviceID"]);
  
}

WMI query - sample windows WQL with VB.Net, PNPDeviceID property of CIM_Printer

Get a specified instance of CIM_Printer by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\CIMV2\ms_409")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM CIM_Printer Where PropertyName="SomeText"")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("PNPDeviceID : {0}", mObject("PNPDeviceID"))
Next
comments powered by Disqus
WUtils.com