AudioDeviceCmdlets icon indicating copy to clipboard operation
AudioDeviceCmdlets copied to clipboard

Feature request - Control disabled devices

Open cappaji opened this issue 7 years ago • 5 comments

Is it possible to add the cmdlet to return the device name of the disabled audio device ?

Currently if we execute 'Get-AudioDevice -Playback' after disabling the audio device we get below exception. Get-AudioDevice : Element not found. (Exception from HRESULT: 0x80070490) At line:1 char:1

  • Get-AudioDevice -Playback
  •   + CategoryInfo          : NotSpecified: (:) [Get-AudioDevice], COMException
      + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,AudioDeviceCmdlets.GetAudioDevice
    
    

cappaji avatar Jul 11 '18 21:07 cappaji

Yes, currently AudioDeviceCmdlets only support enabled devices, but I think an optional -ShowDisabled parameter could be added.

frgnca avatar Jul 11 '18 23:07 frgnca

Thanks. It would be really great and helpful if the option -ShowDisabled is added.

cappaji avatar Jul 12 '18 00:07 cappaji

I opened the pull request #25 to try and add this feature in the next version.

frgnca avatar Aug 12 '18 23:08 frgnca

Hello, Was this left abandoned?

mrtbrt17 avatar Jun 25 '21 20:06 mrtbrt17