Jump to content

Recommended Posts

Posted
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.
Posted

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

Posted
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.
Posted

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

Posted

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 :)

  • 1 month later...
Posted
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!!!!

  • 2 months later...
Posted

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.

  • 2 years later...
Posted

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.

Posted
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"

Posted

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.

Posted (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 by thomaswp
Brain fail. Put WDS not RDS
Posted
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
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.

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...