Can PowerShell detect an audio output device attached to a computer?

Forum members,

I was recently given an inventory task. I need to find out the model numbers of monitors attached to PC's in our workplace. I found a script that uses WMI and it worked well.

The next step is to find which machines need a speaker bar. That got me thinking if it is possible to use PowerShell to detect if a speaker or headset is attached to a computer?

Thanks,

-John

August 20th, 2015 11:01pm

Only if connected by Bluetooth or Wi-Fi.  Most audio cards are dumb.  Some special purpose ones can detect some speakers but usually only the very expensive ones.
Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 12:04am

Hi John,

Before going to PowerShell, see if you can list the item details using GUI.

Compmgmt.msc -> Device Manager

RUN-> msinfo32

cmd.exe > Systeminfo

If yes, most likely there would be a way to get it using PS, else as jrv mentioned your Audio Device is more of a analog device, and what you can have is only the soundcard info.

August 21st, 2015 2:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics