1

One of my games will not respond to the usual nircmd command to mute it:

nircmd snircmd muteappvolume Cyberpunk2077.exe 1

I suspect it may not be working as it may be one of those applications that spawns another that controls the audio:

enter image description here

I have also tried:

nircmd snircmd muteappvolume "Cyberpunk 2077 (C) 2020 by CD Projekt RED" 1
nircmd snircmd muteappvolume "Cyberpunk 2077 (C) 2020 by CD Projekt" 1
nircmd snircmd muteappvolume "Cyberpunk 2077 (C) 2020 by CD" 1
nircmd snircmd muteappvolume "Cyberpunk 2077 (C) 2020 by" 1
nircmd snircmd muteappvolume "Cyberpunk 2077 (C) 2020" 1
nircmd snircmd muteappvolume "Cyberpunk 2077 (C)" 1
nircmd snircmd muteappvolume "Cyberpunk 2077" 1
nircmd snircmd muteappvolume "Cyberpunk" 1

None of these worked either. This command works fine with other applications, so I know I have used the right commands, and that nircmd is installed.

Since this fails, and nircmd is deprecated, I am looking for another way via script (.bat or .AHK) to mute my game. How can I achieve this in Windows 10?

3 Answers3

2

There's a freeware "SoundVolumeView" from Nirsoft which has extensive command line tools and is said to be compatible up to Windows 11.

So, once installed, you can do something like:

svcl.exe /Mute "Cyberpunk2077.exe" 

or:

svcl.exe /SetVolume "Cyberpunk2077.exe" 0 
1NN
  • 10,044
1

You could still try :

nircmd setappvolume Cyberpunk2077.exe 0

If this also doesn't work, many games I have seen can be muted from their Settings. If Cyberpunk is not one of them, it can still be muted from the Windows Volume mixer, which is invoked with the command sndvol.exe.

If everything fails, or if you want to be more selective regarding which part of Cyberpunk to mute, this requires a mod from nexusmods.com.

I have found these two mods (but there are probably others):

harrymc
  • 498,455
1

Just run nircmd as an Administrator ( or, from a CMD that's been opened as admin )

Netan
  • 983