File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,14 +10,10 @@ Set default audio device (playback/recording)
1010Set volume and mute state of default audio device (playback/recording)
1111
1212
13- ## Import Cmdlet to PowerShell
14- Download <a href =" https://github.com/frgnca/AudioDeviceCmdlets/releases/download/v3.0/AudioDeviceCmdlets.dll " >AudioDeviceCmdlets.dll</a >
15- ``` powershell
16- New-Item "$($profile | split-path)\Modules\AudioDeviceCmdlets" -Type directory -Force
17- Copy-Item "C:\Path\to\AudioDeviceCmdlets.dll" "$($profile | split-path)\Modules\AudioDeviceCmdlets\AudioDeviceCmdlets.dll"
18- Set-Location "$($profile | Split-Path)\Modules\AudioDeviceCmdlets"
19- Get-ChildItem | Unblock-File
20- Import-Module AudioDeviceCmdlets
13+ ## Installation
14+ Run as administrator
15+ ``` PowerShell
16+ Install-Module -Name AudioDeviceCmdlets
2117```
2218
2319
@@ -84,6 +80,15 @@ Write-AudioDevice -PlaybackMeter # Writes the default playback device's power o
8480
8581 AudioDeviceCmdlets\bin\Release\AudioDeviceCmdlets.dll
8682
83+ 6 . Import Cmdlet to PowerShell
84+ ```PowerShell
85+ New-Item "$($profile | split-path)\Modules\AudioDeviceCmdlets" -Type directory -Force
86+ Copy-Item "C:\Path\to\AudioDeviceCmdlets.dll" "$($profile | split-path)\Modules\AudioDeviceCmdlets\AudioDeviceCmdlets.dll"
87+ Set-Location "$($profile | Split-Path)\Modules\AudioDeviceCmdlets"
88+ Get-ChildItem | Unblock-File
89+ Import-Module AudioDeviceCmdlets
90+ ```
91+
8792
8893## Attribution
8994
You can’t perform that action at this time.
0 commit comments