sfoord Posted August 7, 2007 Posted August 7, 2007 Does anyone know of a program you can run at the command to un-mute the sound & reset the volume to maximum on all the volume controls not just the master volume? I use mute.exe and setvol.exe in the logon script at min but they only re-set the master volume not the rest.
ChrisH Posted August 7, 2007 Posted August 7, 2007 To maximum? That sounds a little strange. Is the sound very low or something?
Geoff Posted August 7, 2007 Posted August 7, 2007 You can do it with NirCmd and it's 'setsysvolume' option. setsysvolume [volume] {Component} {Device Index} Set the sound volume for your system. Changing this value also affects the sound volume settings under 'Control Panel'. The [volume] parameter should contain a value between 0 (silence) and 65535 (full volume). {Component} is an optional parameter that specifies one of the following sound components: master, waveout, synth, cd, microphone, phone, aux, line, headphones, wavein. The default value is 'master' (for master volume). Under Windows Vista, the component name must be identical to the one of the device names appear in the sound window of Vista (Control Panel -> Sound). If the device name contains spaces, it must be in quotes. {Device Index} is an optional parameter that specifies the sound device index. This parameter is useful if you have more than one sound card. If you don't specify this parameter, the default sound card in Control Panel is used. Examples: setsysvolume 0x8000 setsysvolume 0 setsysvolume 25000 waveout setsysvolume 25000 master 1
sfoord Posted August 7, 2007 Author Posted August 7, 2007 Setting maximum is normal in most primary school because the teachers control the volume by the speakers controls not the pc's volume control. I must have spent lots of time fixes sound problem which are due to muted volume controls & volume controls set to minimum. So trying to find a way to reset the volume at login, it does not have to be maximum but normal its set to that. Setvol.exe will let you set the volume to any value you want, but only for the master volume and not for example the wave volume.
sfoord Posted August 7, 2007 Author Posted August 7, 2007 Thanks Geoff Works great on my pc at home:D Will try it tomorrow at school with a logon script. Never seen Nircmd before looks very useful Thanks again Ste
Geoff Posted August 7, 2007 Posted August 7, 2007 Oh yes, some AV/Antispyware software dislikes NirCmd and flags it as suspicious. So watch out for that.
lovelldr Posted August 9, 2007 Posted August 9, 2007 Thanks a lot for this. This is something that I was wanting to get around to if I'd got time. Saves me having to look into how to do it now Many thanks
gwendes Posted September 12, 2007 Posted September 12, 2007 Oh yes, some AV/Antispyware software dislikes NirCmd and flags it as suspicious. So watch out for that. AV I can understand. Try Websense flagging it as 'HACKING' GRRR!!!!
Oops_my_bad Posted December 3, 2007 Posted December 3, 2007 This looks good... but is there a way to just enable the volume control on the task bar? I have built an image but forgot to enable the icon for default user :oops:
maniac Posted December 3, 2007 Posted December 3, 2007 AV I can understand. Try Websense flagging it as 'HACKING' GRRR!!!! Well I suppose from the persective of a student, it would be a hacking tool as it would allow them to change registry settings etc. Mike.
thomaswp Posted July 12, 2010 Posted July 12, 2010 I know that this is an ancient thread, but I am trying to get control of sound on boot/login. My test copies the nircmd files over to C:\Windows fine but it does not mute the speakers... 'mute the sound CreateObject("WScript.Shell").Run "C:\Windows\nircmd.exe mutesysvolume 1" Works perfectly when run on its own in a little vbs file but will not work if put in the users startup script OR in the machine boot script. Odd.
sted Posted July 12, 2010 Posted July 12, 2010 I know that this is an ancient thread, but I am trying to get control of sound on boot/login. My test copies the nircmd files over to C:\Windows fine but it does not mute the speakers... 'mute the sound CreateObject("WScript.Shell").Run "C:\Windows\nircmd.exe mutesysvolume 1" Works perfectly when run on its own in a little vbs file but will not work if put in the users startup script OR in the machine boot script. Odd. shouldnt that be 'mute the sound CreateObject("WScript.Shell").Run "C:\Windows\nircmd.exe" mutesysvolume 1 as there is no file called "C:\Windows\nircmd.exe mutesysvolume 1"
thomaswp Posted July 13, 2010 Posted July 13, 2010 No, that would throw an error (I checked, it does) since I think that the speech marks should enclose what goes in the Run box in Windows. Also, that little script works fine when executed manually. 'mute the sound CreateObject("WScript.Shell").Run """C:\Windows\nircmd.exe"" mutesysvolume 1" also works perfectly if executed manually. But neither work if put in the Computer boot script or the personal user login script.
p858snake Posted July 13, 2010 Posted July 13, 2010 can't you in the gp screen for scripts, open the folder dump the exe in there, add it then put "mutesysvolume 1" in the parameters field? 1
thomaswp Posted July 13, 2010 Posted July 13, 2010 (edited) I will test that. If it works you have taught me something completely new and I thank you. I will report back. LATER: argh, can't do it with our RDS setup (long story and out of my control) and not back in school for a couple of days. Will report back. Edited July 13, 2010 by thomaswp Brain fail. Put WDS not RDS
p858snake Posted July 13, 2010 Posted July 13, 2010 I'm talking about the sysvol or whatever one it links on that window (in srv 03 at least), what does wds have to do with this?
thomaswp Posted July 13, 2010 Posted July 13, 2010 I'm talking about the sysvol or whatever one it links on that window (in srv 03 at least), what does wds have to do with this?Typo. I was talking about WDS with another friend (we are thinking about Win7). I meant RDS. It was 9pm when I was typing and I was not about to go back in to work to try. I thought that I could test it from home, but our RDS setup only allows me to RDS to the server which has no audio, so I suspect that I could not tell if audio was working on the workstation. I need to be stood in front of the machine. I will report back...
Guest TheLibrarian Posted July 13, 2010 Posted July 13, 2010 Oh yes, some AV/Antispyware software dislikes NirCmd and flags it as suspicious. So watch out for that. If you don't want to authorise NirCmd, Wizmo GRC | WIZMO - Steve's Windows Gizmo will modify the system volume without triggering any AV/Antispyware solutions AFAIK.
thomaswp Posted July 13, 2010 Posted July 13, 2010 Thanks. I know GRC from Shields Up over the years, and that also looks pretty useful. I'll look at that too!
thomaswp Posted July 15, 2010 Posted July 15, 2010 I got the wizmo working nicely using the trick of putting it in the login script in the GPO and passing parameters. This is beautiful. I thank you all.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now