+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
Windows Thread, Resetting Volume at login in Technical; Does anyone know of a program you can run at the command to un-mute the sound & reset the volume ...
  1. #1

    Join Date
    Jul 2007
    Posts
    33
    Thank Post
    16
    Thanked 2 Times in 2 Posts
    Rep Power
    15

    Resetting Volume at login

    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.

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,993
    Thank Post
    120
    Thanked 286 Times in 263 Posts
    Rep Power
    107

    Re: Resetting Volume at login

    To maximum? That sounds a little strange. Is the sound very low or something?

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,812
    Thank Post
    110
    Thanked 585 Times in 506 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Resetting Volume at login

    You can do it with NirCmd and it's 'setsysvolume' option.
    Code:
    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:
    Code:
    setsysvolume 0x8000
    setsysvolume 0
    setsysvolume 25000 waveout
    setsysvolume 25000 master 1

  4. #4

    Join Date
    Jul 2007
    Posts
    33
    Thank Post
    16
    Thanked 2 Times in 2 Posts
    Rep Power
    15

    Re: Resetting Volume at login

    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.

  5. #5

    Join Date
    Jul 2007
    Posts
    33
    Thank Post
    16
    Thanked 2 Times in 2 Posts
    Rep Power
    15

    Re: Resetting Volume at login

    Thanks Geoff

    Works great on my pc at home Will try it tomorrow at school with a logon script. Never seen Nircmd before looks very useful

    Thanks again

    Ste

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,812
    Thank Post
    110
    Thanked 585 Times in 506 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Resetting Volume at login

    Oh yes, some AV/Antispyware software dislikes NirCmd and flags it as suspicious. So watch out for that.

  7. #7

    Join Date
    Jun 2007
    Location
    Leicestershire
    Posts
    82
    Thank Post
    24
    Thanked 3 Times in 2 Posts
    Rep Power
    15

    Re: Resetting Volume at login

    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

  8. #8
    gwendes's Avatar
    Join Date
    Jan 2007
    Location
    London
    Posts
    1,495
    Thank Post
    161
    Thanked 30 Times in 29 Posts
    Rep Power
    26

    Re: Resetting Volume at login

    Quote Originally Posted by Geoff
    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!!!!

  9. #9
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,738
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    30

    Re: Resetting Volume at login

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

  10. #10

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,070
    Thank Post
    210
    Thanked 430 Times in 310 Posts
    Rep Power
    144

    Re: Resetting Volume at login

    Quote Originally Posted by gwendes
    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.

  11. #11

    Join Date
    Mar 2010
    Location
    New Zealand
    Posts
    19
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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...

    Code:
    '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.

  12. #12


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,802
    Thank Post
    231
    Thanked 883 Times in 759 Posts
    Rep Power
    300
    Quote Originally Posted by thomaswp View Post
    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...

    Code:
    '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

    Code:
    '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"

  13. #13

    Join Date
    Mar 2010
    Location
    New Zealand
    Posts
    19
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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.
    Code:
    '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.

  14. #14
    p858snake's Avatar
    Join Date
    Dec 2008
    Location
    Queensland
    Posts
    1,490
    Thank Post
    37
    Thanked 175 Times in 151 Posts
    Blog Entries
    2
    Rep Power
    51
    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?

  15. Thanks to p858snake from:

    thomaswp (15th July 2010)

  16. #15

    Join Date
    Mar 2010
    Location
    New Zealand
    Posts
    19
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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.
    Last edited by thomaswp; 13th July 2010 at 11:44 AM. Reason: Brain fail. Put WDS not RDS

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Access points need resetting
    By Outpost in forum Wireless Networks
    Replies: 7
    Last Post: 20th February 2008, 03:47 PM
  2. Teachers resetting pupil passwords
    By dave-a in forum Network and Classroom Management
    Replies: 35
    Last Post: 9th February 2008, 06:46 PM
  3. Resetting Permissions for Student Home Folders
    By Zoom7000 in forum Windows
    Replies: 11
    Last Post: 5th December 2007, 10:33 AM
  4. Microsoft Volume Licensing - who?
    By dave.81 in forum How do you do....it?
    Replies: 30
    Last Post: 3rd October 2007, 11:05 AM
  5. Windows Volume not loud enough
    By ChrisH in forum Windows
    Replies: 10
    Last Post: 11th November 2006, 07:30 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •