AutomatedLab / DeviceManagement

PowerShell module to manage Windows Devices
MIT License
28 stars 10 forks source link

get device list failed in windows 10 1709 16299.1146 #1

Open jingrongx opened 5 years ago

jingrongx commented 5 years ago

Name                                                     Enabled Class                  InstanceId                   
----                                                     ------- -----                  ----------                   
Send To OneNote 2013                                     True    4294967295             SWD\PRINTENUM\{B5188BED-7D...
Motherboard resources                                    True    GUID_DEVCLASS_SYSTEM   ACPI\PNP0C02\0               
Microsoft AC Adapter                                     True    GUID_DEVCLASS_BATTERY  ACPI\ACPI0003\0              
USB Root Hub                                             True    GUID_DEVCLASS_USB      USB\ROOT_HUB20\4&221FC7CD&0  
Intel(R) 8 Series USB Enhanced Host Controller #1 - 9C26 True    GUID_DEVCLASS_USB      PCI\VEN_8086&DEV_9C26&SUBS...
Microsoft ACPI-Compliant Embedded Controller             True    GUID_DEVCLASS_SYSTEM   ACPI\PNP0C09\0               
Direct memory access controller                          True    GUID_DEVCLASS_SYSTEM   ACPI\PNP0200\4&2BAB320D&0    
HID-compliant vendor-defined device                      True    GUID_DEVCLASS_HIDCLASS HID\VID_04F3&PID_0139&COL0...
USB Input Device                                         True    GUID_DEVCLASS_HIDCLASS USB\VID_04F3&PID_0139\6&22...
Microsoft ACPI-Compliant Control Method Battery          True    GUID_DEVCLASS_BATTERY  ACPI\PNP0C0A\0               
Microsoft ACPI-Compliant Control Method Battery          True    GUID_DEVCLASS_BATTERY  ACPI\PNP0C0A\1               
Intel(R) Dual Band Wireless-AC 7260                      True    GUID_DEVCLASS_NET      PCI\VEN_8086&DEV_08B2&SUBS...
Root Print Queue                                         True    4294967295             SWD\PRINTENUM\PRINTQUEUES    
Generic PnP Monitor                                      True    GUID_DEVCLASS_MONITOR  DISPLAY\LEN40E2\4&12B41AD7...
Volume Manager                                           True    GUID_DEVCLASS_SYSTEM   ROOT\VOLMGR\0000             
Intel(R) 8 Series PCI Express Root Port #6 - 9C1A        True    GUID_DEVCLASS_SYSTEM   PCI\VEN_8086&DEV_9C1A&SUBS...
WAN Miniport (PPPOE)                                     True    GUID_DEVCLASS_NET      SWD\MSRRAS\MS_PPPOEMINIPORT  
USB Input Device                                         True    GUID_DEVCLASS_HIDCLASS USB\VID_03F0&PID_154A\6&19...
Microsoft Hyper-V Virtual Machine Bus Provider           True    GUID_DEVCLASS_SYSTEM   ROOT\VMBUS\0000              
PCI Express Root Complex                                 True    GUID_DEVCLASS_SYSTEM   ACPI\PNP0A08\2&DABA3FF&6     
Microphone Array (Realtek High Definition Audio)         True    4294967295             SWD\MMDEVAPI\{0.0.1.000000...
Microsoft Basic Display Driver                           True    GUID_DEVCLASS_SYSTEM   ROOT\BASICDISPLAY\0000       
ACPI Thermal Zone                                        True    GUID_DEVCLASS_SYSTEM   ACPI\THERMALZONE\THM0        
ACPI Sleep Button                                        True    GUID_DEVCLASS_SYSTEM   ACPI\PNP0C0E\2&DABA3FF&6     
Intel(R) HD Graphics Family                              True    GUID_DEVCLASS_DISPLAY  PCI\VEN_8086&DEV_0A16&SUBS...
System board                                             True    GUID_DEVCLASS_SYSTEM   ACPI\PNP0C01\2&DABA3FF&6     
Hyper-V Virtual Switch Extension Adapter                 True    GUID_DEVCLASS_NET      ROOT\VMS_VSMP\0000           
Get-Device : Error calling SetupDiGetDeviceProperty
At line:1 char:1
+ Get-Device
+ ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-Device], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,DeviceManagementModule.GetDeviceCmdlet

PS C:\Users\test\Downloads\Software\PowerShell>
MikeGitAZ commented 4 years ago

Failed for me on Windows 10 Build 1909, running PowerShell as admin. Same error but I didn't get any devices listed.