PowerTip: Find all devices connected to a computer

Doctor Scripto

Dr Scripto

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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment