win下想快捷禁用启用音频设备
首先看系统自带命令pnputil
pnputil /disable-device @"HDAUDIO\FUNC_01&VEN_10EC&DEV_0256&SUBSYS_19E53E05&REV_1000\4&3A02F3D3&0&0001"
最后执行没效果,看说明disable-device是后来才出我的window版本可能太老没这参数
msinfo32 和 systeminfo 都能看到自己电脑系统版本
systeminfo | findstr /B /C:"OS" /C:"OS Version"
英文电脑用Version 中文用 版本
systeminfo | findstr /B /C:"OS" /C:"OS 版本"
然后又下载devcon
在另一台电脑实验成功
devcon.exe Disable "HDAUDIO\FUNC_01&VEN_10EC&DEV_0256&SUBSYS_19E53E05"
然后到家庭版的win10找不到设备,用
devcon find *
查询到可能音频相关设备
SWD\MMDEVAPI\{0.0.0.00000000}.{B75D143C-76E5-42B6-87E1-B4582809F31B}: xspeaker (Realtek High Definition Audio)
ROOT\UNNAMED_DEVICE\0000 : NVIDIA Virtual Audio Device (Wave Extensible) (WDM)
SWD\MMDEVAPI\{0.0.1.00000000}.{E16E891A-F715-46EE-9069-BBD4B6CE3AF2}: (Realtek High Definition Audio)
SWD\MMDEVAPI\{0.0.1.00000000}.{E3532DBB-4EDA-47C3-9CC0-72713507509A}
PCI\VEN_8086&DEV_9D71&SUBSYS_3E0519E5&REV_21\3&11583659&0&FB: High Definition Audio
然后尝试如下几种命令不可行,没效果
devcon.exe Disable @"HDAUDIO\FUNC_01&VEN_10EC&DEV_0256&SUBSYS_19E53E05"
devcon.exe Disable @"SWD\MMDEVAPI\{0.0.0.00000000}.*" 执行没效果
devcon.exe Disable @"SWD\MMDEVAPI\{0.0.1.00000000}.*" 执行没效果
devcon.exe Disable "xspeaker" 找不到设备
devcon.exe Disable "Realtek High Definition Audio" 找不到设备
最后又下载
SoundVolumeView v2.43 用如下命令成功
SoundVolumeView.exe /Disable "Realtek High Definition Audio"
SoundVolumeView.exe /enable "Realtek High Definition Audio"