Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, February 22, 2018 12:14 PM
Is there any way i can mute and unmute the speakers on my win10 laptop using a batch file?
Long story short, my laptop's touch pad is broken so i use Batch files for almost anything... from connecting to Wifi to running applications.
I not looking for utilities or vbs scripts. Just a simple Batch file... something like this
@echo off
netsh interface set interface name="Wi-Fi" admin=disabled
netsh interface set interface name="Wi-Fi" admin=enabled
that's for resetting the network adapter when it glitches.
I've googled for about an hour and i can't find any forum with an answer for this.
It'd be pretty strange for Windows to have 0 ways of controlling the speakers via commands.
All replies (6)
Thursday, February 22, 2018 12:18 PM ✅Answered | 2 votes
You could check here as the same question has been previously asked: https://superuser.com/questions/452206/is-it-possible-to-mute-your-computer-through-the-command-line-interface
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
Friday, February 23, 2018 8:30 AM ✅Answered | 2 votes
Hi,
Yes, you could use NirCmd. Then you could use the command to control.
http://www.nirsoft.net/utils/nircmd.html
nircmd.exe mutesysvolume 1
nircmd.exe mutesysvolume 0
Regards,
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Thursday, February 22, 2018 12:25 PM
So i HAVE to download a utility...
Thank you for your answer.
Saturday, February 24, 2018 5:00 AM
mute and unmute the speakers on my win10 laptop using a batch file?
I would use Mobility Center. Win-x b M
Robert Aldwinckle
Friday, May 31, 2019 3:12 PM | 1 vote
If you just want to turn of the sound on your computer you could use:
net stop audiosrv
To turn it on again:
net start audiosrv
But this nir software seems to be able to do lot more advanced stuff.
Wednesday, June 19, 2019 1:27 PM
set oshell=createobject("wscript.shell")
oshell.run "sndvol32"
oshell.appactivate "volume control"
WScript.sleep 600
oshell.appactivate "volume control"
oshell.sendkeys "{tab}"
wscript.sleep 600
oshell.sendkeys "m"
wscript.sleep 600
oshell.sendkeys Chr(32)
wscript.sleep 600
oshell.appactivate "volume control"
wscript.sleep 600
oshell.sendkeys "%{f4}"
This VbScript will Mute/Unmute the speaker volume.
if you are looking to do with cmd, you will again 3rd party utility nir.if not you ,may be this could be helpful for other.