Get-Device Error

Dec 23, 2016 at 1:32 AM
I am getting the following errors when trying to enumerate devices in Win2012R2 machine.
Any suggestions how to fix?


get-Device : Error calling SetupDiGetDeviceProperty
At line:1 char:1
  • get-Device -ShowNonpresentPresentDevices:$flase -Class GUID_DEVCLASS_SCSIADAPTER
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Get-Device], Win32Exception
    • FullyQualifiedErrorId : System.ComponentModel.Win32Exception,DeviceManagementModule.GetDeviceCmdlet