PowerTip: Find all devices connected to a computer


Summary: Use PowerShell to find all devices that are connected to a computer.

Hey, Scripting Guy! Question How can I use Windows PowerShell to list all devices that are connected to a computer?

Hey, Scripting Guy! Answer Use the Get-PnpDevice cmdlet and the -PresentOnly switch. Here is an example:

Get-PnpDevice -PresentOnly

The Doctor

Comments (1)

  1. Brad_Voris says:

    Just FYI this is OS version specific. Windows 10 and Server Technical Preview (Windows Server 2016) 🙁
    https://technet.microsoft.com/en-us/library/mt130248.aspx

Skip to main content