Windows Audio Device Cmdlet

April 24, 2013

Basic command-line audio device control from Powershell including Nuget Package Manager Console.

On GitHub

Features: Set Volume and toggle Mute on the Default Playback Device. Get a list of devices and set the Default Audio Device.


  1. Download
  2. New-Item “$profile\Modules\AudioDeviceCmdlets” -Type directory -Force
  3. Copy CoreAudioApi.dll, AudioDeviceCmdlets.dll and AudioDeviceCmdlets.dll-Help.xml
  4. Import the binary module. This can go into your profile.

    Import-Module AudioDeviceCmdlets
  5. You may need to set the execution policy.

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Suggested Aliases. I may set these in the module in the future.

New-Alias -Name Mute -Value Set-DefaultAudioDeviceMute
New-Alias -Name Vol -Value set-DefaultAudioDeviceVolume

Exposed Cmdlets


Based on work done by Ray M. hosted on The Code Project

comments powered by Disqus