< # .SYNOPSIS Uses Win32_PNPEntity to return information about non-working devices. .DESCRIPTION This script calls Get-WmiObject to retrieve plug and play details, then formats and displays non-working devices. The script also has to work around how WMI returns 0 and 1 object (i.e. no $obj .count). This is also sample 6 on http://msdn.microsoft.com/en-us/library/aa394587… Read the full text.