DevCon classes命令
2022-01-28
143
0
classes命令列出了所有设备安装程序类,包括系统上的设备不使用的类。 在本地和远程计算机上都可以使用。
devcon [/m:\\computer] classes
参数
如果要在指定的远程机器上运行,使用/m参数,并且目标计算机的路径使用反斜杠”\”来标识。
注意 若要在远程计算机上运行 DevCon 命令,组策略设置必须允许即插即用服务在远程计算机上运行。 在运行 Windows Vista 和 Windows 7 的计算机上,默认情况下组策略禁止对服务的远程访问。 在运行 WDK 8.1 和 WDK 8 的计算机上,远程访问不可用。
备注
- /m参数必须位于类的操作名称之前。 否则,DevCon 将忽略 /m 参数,并在本地计算机上显示类,而不会返回语法错误。
- 在 DevCon 显示中,按 GUID) 的顺序列出类,按它们在 (注册表中的显示顺序列出。
- 若要在安装程序类中查找设备,请使用 DevCon ListClass 操作。 若要查找特定设备的安装类,请使用 DevCon Stack 操作。
用法示例
devcon classes > setupclasses.txt //将运行结果输出到setupclasses.txt文件中,如果文件不存在则创建
devcon /m:\\Server01 classes
用法实战
devcon classes
输出为:
Listing 101 setup classes.
XboxComposite : Xbox Peripherals
RemotePosDevice : POS Remote Device
DigitalMediaDevices : Digital Media Devices
PrintQueue : Print queues
PSM : Intel?Power Sharing Manager
WCEUSBS : Mobile devices
Security Accelerator: Security accelerators
HidMsr : POS HID Magnetic Stripe Reader
SystemRecovery : FS System recovery filters
USB : Universal Serial Bus controllers
ContentScreener : FS Content screener filters
Media Center Extender: Media Center Extenders
PnpPrinters : IEEE 1394 and SCSI printers
Dot4 : IEEE 1284.4 devices
Replication : FS Replication filters
Dot4Print : IEEE 1284.4 compatible printers
CDROM : DVD/CD-ROM drives
Computer : Computer
DiskDrive : Disk drives
Display : Display adapters
FDC : Floppy drive controllers
HDC : IDE ATA/ATAPI controllers
Keyboard : Keyboards
MEDIA : Sound, video and game controllers
Modem : Modems
Monitor : Monitors
Mouse : Mice and other pointing devices
MTD : Memory technology devices
MultiFunction : Multifunction adapters
Net : Network adapters
NetClient : Network Client
NetService : Network Service
NetTrans : Network Protocol
PCMCIA : PCMCIA adapters
Ports : Ports (COM & LPT)
Printer : Printers
SCSIAdapter : Storage controllers
System : System devices
Unknown : Other devices
FloppyDisk : Floppy disk drives
Processor : Processors
MultiPortSerial : Multi-port serial adapters
Memory : Memory devices
SmartCardReader : Smart card readers
Sensor : Sensors
VolumeSnapshot : Storage volume shadow copies
ScmDisk : Persistent memory disks
ScmVolume : Storage Class Memory volumes
Biometric : Biometric devices
Proximity : Proximity devices
AudioProcessingObject: Audio Processing Objects (APOs)
SoftwareComponent : Software components
FSFilterSystem : FS System filters
SoftwareDevice : Software devices
PhysicalQuotaManagement: FS Physical quota management filters
1394 : IEEE 1394 host controllers
Infrared : Infrared devices
Image : Imaging devices
TapeDrive : Tape drives
Volume : Storage volumes
ContinuousBackup : FS Continuous backup filters
Battery : Batteries
HIDClass : Human Interface Devices
HidCashDrawer : POS Cash Drawer
61883 : 61883 devices
QuotaManagement : FS Quota management filters
TS_Generic : Generic Remote Desktop devices
USBDevice : Universal Serial Bus devices
CopyProtection : FS Copy protection filters
LegacyDriver : Non-Plug and Play drivers
SmartCard : Smart cards
Ramdisk : RAM Disk drives
EhStorSilo : IEEE 1667 silo and control devices
SDHost : SD host adapters
Encryption : FS Encryption filters
AntiVirus : FS Anti-virus filters
ActivityMonitor : FS Activity monitor filters
USBFunctionController: Universal Serial Bus Function controllers
AVC : Audio/video control devices
AudioEndpoint : Audio inputs and outputs
BarcodeScanner : POS Barcode Scanner
WSDPrintDevice : WSD Print Provider
POSPrinter : POS Receipt Printer
CFSMetadataServer : FS CFS metadata server filters
MediumChanger : Medium Changer devices
SecurityEnhancer : FS Security enhancer filters
Miracast : Miracast display devices
SBP2 : SBP2 IEEE 1394 devices
HSM : FS HSM filters
XnaComposite : Xbox 360 Peripherals
SecurityDevices : Security devices
SmartCardFilter : Smart card filters
Bluetooth : Bluetooth
Extension : Extensions
Infrastructure : FS Infrastructure filters
WPD : Portable Devices
Firmware : Firmware
Compression : FS Compression filters
Virtualization : FS Virtualization filters
OpenFileBackup : FS Open file backup filters
Undelete : FS Undelete filters
输出的内容左侧为设备类名,右侧为设备类的描述信息(可以通过SetupDiGetClassDescriptionEx函数来获得)