From 4a017fb0591d7e1d8f1993d5c8b995407e33ccac Mon Sep 17 00:00:00 2001 From: frgnca Date: Tue, 17 Aug 2021 18:43:18 -0400 Subject: [PATCH] change installation instructions --- README.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c95bc59..2c13b96 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,10 @@ Set default audio device (playback/recording) Set volume and mute state of default audio device (playback/recording) -## Import Cmdlet to PowerShell -Download AudioDeviceCmdlets.dll -```powershell -New-Item "$($profile | split-path)\Modules\AudioDeviceCmdlets" -Type directory -Force -Copy-Item "C:\Path\to\AudioDeviceCmdlets.dll" "$($profile | split-path)\Modules\AudioDeviceCmdlets\AudioDeviceCmdlets.dll" -Set-Location "$($profile | Split-Path)\Modules\AudioDeviceCmdlets" -Get-ChildItem | Unblock-File -Import-Module AudioDeviceCmdlets +## Installation +Run as administrator +```PowerShell +Install-Module -Name AudioDeviceCmdlets ``` @@ -84,6 +80,15 @@ Write-AudioDevice -PlaybackMeter # Writes the default playback device's power o AudioDeviceCmdlets\bin\Release\AudioDeviceCmdlets.dll +6. Import Cmdlet to PowerShell + ```PowerShell + New-Item "$($profile | split-path)\Modules\AudioDeviceCmdlets" -Type directory -Force + Copy-Item "C:\Path\to\AudioDeviceCmdlets.dll" "$($profile | split-path)\Modules\AudioDeviceCmdlets\AudioDeviceCmdlets.dll" + Set-Location "$($profile | Split-Path)\Modules\AudioDeviceCmdlets" + Get-ChildItem | Unblock-File + Import-Module AudioDeviceCmdlets + ``` + ## Attribution