投稿

7月, 2021の投稿を表示しています

コマンドでサウンド関係の設定を変更する

Windows PowerShellのコマンドでサウンド関係の設定を変更するメモ。 <準備> Download AudioDeviceCmdlets.dll 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 Get-AudioDevice -List             # Outputs a list of all devices as <AudioDevice>                 -ID <string>      # Outputs the device with the ID corresponding to the given <string>                 -Index <int>      # Outputs the device with the Index corresponding to the given <int> -Playback         # Outputs the default playback device as <AudioDevice>                 -PlaybackMute     # Outputs the default playback device's mute state as <bool>                 -PlaybackVolume