添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱喝酒的炒饭  ·  [SOLVED] [Android] ...·  1 周前    · 
刚分手的卤蛋  ·  Moov Atom Not ...·  11 月前    · 
开朗的烤土司  ·  Message Processing ...·  1 年前    · 
暴走的单车  ·  Git tip: squash ...·  1 年前    · 
PNPDeviceID in other namespaces

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

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

property Class Origin
PNPDeviceID CIM_LogicalDevice CIM_LogicalDevice

Code samples for PNPDeviceID property

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

Short VBS code - get a single specified instance of Win32_PnPEntity 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:" + _ "Win32_PnPEntity.DeviceID=""ACPI\\PNP0C02\\1""" ) Wscript . Echo wmiObject.PNPDeviceID 'or other property name, see properties See more VBS samples of Win32_PnPEntity class

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

Get a specified instance of Win32_PnPEntity 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" ); //create object query ObjectQuery query = new ObjectQuery ( "SELECT * FROM Win32_PnPEntity Where DeviceID=\"ACPI\\\\PNP0C02\\\\1\"" ); //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 Win32_PnPEntity

Get a specified instance of Win32_PnPEntity 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 , 'Project -> Add reference -> System.Management 'Imports System.Management 'Get the namespace management scope Dim Scope As New ManagementScope ("\\.\ROOT\cimv2") 'Get a result of WML query Dim Query As New ObjectQuery ("SELECT * FROM Win32_PnPEntity Where DeviceID="ACPI\\PNP0C02\\1"") '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"))
property Class Origin
PNPDeviceID CIM_AggregatePExtent CIM_LogicalDevice
PNPDeviceID CIM_AggregatePSExtent CIM_LogicalDevice
PNPDeviceID CIM_AlarmDevice CIM_LogicalDevice
PNPDeviceID CIM_Battery CIM_LogicalDevice
PNPDeviceID CIM_BinarySensor CIM_LogicalDevice
PNPDeviceID CIM_CacheMemory CIM_LogicalDevice
PNPDeviceID CIM_CDROMDrive CIM_LogicalDevice
PNPDeviceID CIM_Controller CIM_LogicalDevice
PNPDeviceID CIM_CoolingDevice CIM_LogicalDevice
PNPDeviceID CIM_CurrentSensor CIM_LogicalDevice
PNPDeviceID CIM_DesktopMonitor CIM_LogicalDevice
PNPDeviceID CIM_DiscreteSensor CIM_LogicalDevice
PNPDeviceID CIM_DiskDrive CIM_LogicalDevice
PNPDeviceID CIM_DisketteDrive CIM_LogicalDevice
PNPDeviceID CIM_DiskPartition CIM_LogicalDevice
PNPDeviceID CIM_Display CIM_LogicalDevice
PNPDeviceID CIM_Fan CIM_LogicalDevice
PNPDeviceID CIM_FlatPanel CIM_LogicalDevice
PNPDeviceID CIM_HeatPipe CIM_LogicalDevice
PNPDeviceID CIM_InfraredController CIM_LogicalDevice
PNPDeviceID CIM_Keyboard CIM_LogicalDevice
PNPDeviceID CIM_LogicalDisk CIM_LogicalDevice
PNPDeviceID CIM_MagnetoOpticalDrive CIM_LogicalDevice
PNPDeviceID CIM_ManagementController CIM_LogicalDevice
PNPDeviceID CIM_MediaAccessDevice CIM_LogicalDevice
PNPDeviceID CIM_Memory CIM_LogicalDevice
PNPDeviceID CIM_MultiStateSensor CIM_LogicalDevice
PNPDeviceID CIM_NetworkAdapter CIM_LogicalDevice
PNPDeviceID CIM_NonVolatileStorage CIM_LogicalDevice
PNPDeviceID CIM_NumericSensor CIM_LogicalDevice
PNPDeviceID CIM_ParallelController CIM_LogicalDevice
PNPDeviceID CIM_PCIController CIM_LogicalDevice
PNPDeviceID CIM_PCMCIAController CIM_LogicalDevice
PNPDeviceID CIM_PCVideoController CIM_LogicalDevice
PNPDeviceID CIM_PhysicalExtent CIM_LogicalDevice
PNPDeviceID CIM_PointingDevice CIM_LogicalDevice
PNPDeviceID CIM_PotsModem CIM_LogicalDevice
PNPDeviceID CIM_PowerSupply CIM_LogicalDevice
PNPDeviceID CIM_Printer CIM_LogicalDevice
PNPDeviceID CIM_Processor CIM_LogicalDevice
PNPDeviceID CIM_ProtectedSpaceExtent CIM_LogicalDevice
PNPDeviceID CIM_Refrigeration CIM_LogicalDevice
PNPDeviceID CIM_Scanner CIM_LogicalDevice
PNPDeviceID CIM_SCSIController CIM_LogicalDevice
PNPDeviceID CIM_Sensor CIM_LogicalDevice
PNPDeviceID CIM_SerialController CIM_LogicalDevice
PNPDeviceID CIM_StorageExtent CIM_LogicalDevice
PNPDeviceID CIM_StorageVolume CIM_LogicalDevice
PNPDeviceID CIM_Tachometer CIM_LogicalDevice
PNPDeviceID CIM_TapeDrive CIM_LogicalDevice
PNPDeviceID CIM_TemperatureSensor CIM_LogicalDevice
PNPDeviceID CIM_UninterruptiblePowerSupply CIM_LogicalDevice
PNPDeviceID CIM_USBController CIM_LogicalDevice
PNPDeviceID CIM_USBDevice CIM_LogicalDevice
PNPDeviceID CIM_USBHub CIM_LogicalDevice
PNPDeviceID CIM_UserDevice CIM_LogicalDevice
PNPDeviceID CIM_VideoController CIM_LogicalDevice
PNPDeviceID CIM_VolatileStorage CIM_LogicalDevice
PNPDeviceID CIM_VoltageSensor CIM_LogicalDevice
PNPDeviceID CIM_VolumeSet CIM_LogicalDevice
PNPDeviceID CIM_WORMDrive CIM_LogicalDevice
PNPDeviceID Win32_1394Controller CIM_LogicalDevice
PNPDeviceID Win32_Battery CIM_LogicalDevice
PNPDeviceID Win32_Bus CIM_LogicalDevice
PNPDeviceID Win32_CacheMemory CIM_LogicalDevice
PNPDeviceID Win32_CDROMDrive CIM_LogicalDevice
PNPDeviceID Win32_CurrentProbe CIM_LogicalDevice
PNPDeviceID Win32_DesktopMonitor CIM_LogicalDevice
PNPDeviceID Win32_DiskDrive CIM_LogicalDevice
PNPDeviceID Win32_DiskPartition CIM_LogicalDevice
PNPDeviceID Win32_Fan CIM_LogicalDevice
PNPDeviceID Win32_FloppyController CIM_LogicalDevice
PNPDeviceID Win32_FloppyDrive CIM_LogicalDevice
PNPDeviceID Win32_HeatPipe CIM_LogicalDevice
PNPDeviceID Win32_IDEController CIM_LogicalDevice
PNPDeviceID Win32_InfraredDevice CIM_LogicalDevice
PNPDeviceID Win32_Keyboard CIM_LogicalDevice
PNPDeviceID Win32_LogicalDisk CIM_LogicalDevice
PNPDeviceID Win32_MappedLogicalDisk CIM_LogicalDevice
PNPDeviceID Win32_MemoryArray CIM_LogicalDevice
PNPDeviceID Win32_MemoryDevice CIM_LogicalDevice
PNPDeviceID Win32_MotherboardDevice CIM_LogicalDevice
PNPDeviceID Win32_NetworkAdapter CIM_LogicalDevice
PNPDeviceID Win32_ParallelPort CIM_LogicalDevice
PNPDeviceID Win32_PCMCIAController CIM_LogicalDevice
PNPDeviceID Win32_PnPEntity CIM_LogicalDevice
PNPDeviceID Win32_PointingDevice CIM_LogicalDevice
PNPDeviceID Win32_PortableBattery CIM_LogicalDevice
PNPDeviceID Win32_POTSModem CIM_LogicalDevice
PNPDeviceID Win32_Printer CIM_LogicalDevice
PNPDeviceID Win32_Processor CIM_LogicalDevice
PNPDeviceID Win32_Refrigeration CIM_LogicalDevice
PNPDeviceID Win32_SCSIController CIM_LogicalDevice
PNPDeviceID Win32_SerialPort CIM_LogicalDevice
PNPDeviceID Win32_SMBIOSMemory CIM_LogicalDevice
PNPDeviceID Win32_SoundDevice CIM_LogicalDevice
PNPDeviceID Win32_TapeDrive CIM_LogicalDevice
PNPDeviceID Win32_TemperatureProbe CIM_LogicalDevice
PNPDeviceID Win32_USBController CIM_LogicalDevice
PNPDeviceID Win32_USBHub CIM_LogicalDevice
PNPDeviceID Win32_VideoController CIM_LogicalDevice
PNPDeviceID Win32_VoltageProbe CIM_LogicalDevice
PNPDeviceID Win32_Volume CIM_LogicalDevice