MSFN Forum: Mute sound on Windows boot up via script or command line URGENT - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mute sound on Windows boot up via script or command line URGENT Rate Topic: -----

#1 User is offline   clivebuckwheat 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 562
  • Joined: 07-November 05

Posted 01 September 2010 - 05:06 AM

Tried to put a vbscript in all users startup, but doesn't take until the full desktop loads. I need a way via command line to mute the sound. Any help would greatly be appreciated.


#2 User is offline   -X- 

  • Member
  • Group: Patrons
  • Posts: 2,050
  • Joined: 08-January 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 01 September 2010 - 05:17 AM

Run it from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

#3 User is offline   clivebuckwheat 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 562
  • Joined: 07-November 05

Posted 01 September 2010 - 05:29 AM

View Post-X-, on 01 September 2010 - 05:17 AM, said:

Run it from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run



That will also wait until the full desktop loads before muting the sound. I tried that

#4 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 866
  • Joined: 11-November 08

Posted 01 September 2010 - 09:00 AM

you can make a small autoit exe to call from the command line

send ("{Volume_Mute}")
exit



if its the only item in the run key, it should execute before the windows entrance jingle.

#5 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,450
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 01 September 2010 - 09:39 AM

What about nircmd?
http://www.nirsoft.n...ils/nircmd.html
nircmd setvolume 0 0 0


Would it run early enough?

Earliest should be runservice:
http://antivirus.abo...tostartkeys.htm

You might need to experiment with INSTSRV/SRVANY and/or with NSSM:
https://iain.cx/src/nssm/
or similar utiities....

jaclaz

#6 User is offline   clivebuckwheat 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 562
  • Joined: 07-November 05

Posted 01 September 2010 - 09:39 AM

View Postiamtheky, on 01 September 2010 - 09:00 AM, said:

you can make a small autoit exe to call from the command line

send ("{Volume_Mute}")
exit



if its the only item in the run key, it should execute before the windows entrance jingle.



Thanks but there is other items in the Run loading which is needed.

#7 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 866
  • Joined: 11-November 08

Posted 01 September 2010 - 09:59 AM

I compiled that script, named it 'mute.exe' and put in the root of d:\

in HKCU\Appevents\Schemes\Apps\.Default\SystemStart\

change the default key in both .current and .default entries to point at d:\mute.exe instead of the '..startup.wav'

in HKU\.Default\Appevents\Schemes\Apps\.Default\SystemStart\

perform the same actions

--its toggling at the moment - trying to figure out if its running and failing and re-running. or if having it in both locations is causing it to run multiple times.



BTW - placing the mute in the run/runonce/runonceex never worked, even when the first/only item

This post has been edited by iamtheky: 01 September 2010 - 10:02 AM


#8 User is offline   clivebuckwheat 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 562
  • Joined: 07-November 05

Posted 01 September 2010 - 10:02 AM

Would this work for all users?, or just the current logged in user?

#9 User is offline   net_user 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 371
  • Joined: 02-June 05
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 01 September 2010 - 10:11 AM

you could also delete all the wav file in "C:\WINDOWS\Media\Windows XP Logon Sound.wav"

#10 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 866
  • Joined: 11-November 08

Posted 01 September 2010 - 10:39 AM

you have made me curious for a method to accomplish this as well. My first solution has a fatal flaw in that if the volume is already muted, it will unmute.

so renaming 'windows xp startup.wav' (or deleting the contents of the media folder)

then from the run key executing an autoit script like

send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
Exit



Would accomplish the effect.

#11 User is offline   clivebuckwheat 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 562
  • Joined: 07-November 05

Posted 01 September 2010 - 11:17 AM

View Postiamtheky, on 01 September 2010 - 10:39 AM, said:

you have made me curious for a method to accomplish this as well. My first solution has a fatal flaw in that if the volume is already muted, it will unmute.

so renaming 'windows xp startup.wav' (or deleting the contents of the media folder)

then from the run key executing an autoit script like

send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
send ("{Volume_down}")
Exit



Would accomplish the effect.


Thanks for your help, a delete is the quick and dirty way to get this done on 52 pc's via script.

#12 Guest_nfljerseys_*

  • Group: Guests

Posted 01 September 2010 - 08:16 PM

thanks for sharing this kind of stuff… great

This post has been edited by Tripredacus: 01 September 2010 - 08:19 PM
Reason for edit: removed links


#13 User is offline   uid0 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 348
  • Joined: 12-June 06

Posted 02 September 2010 - 05:50 AM

View Postclivebuckwheat, on 01 September 2010 - 11:17 AM, said:

Thanks for your help, a delete is the quick and dirty way to get this done on 52 pc's via script.


"Mute sound on Windows boot up" is not the same as "stop the windows login sound from playing"...
Just in case getting rid of some of the other sound effects becomes "URGENT" :lol: , here's a tweak with some clues:
http://www.msfn.org/...post__p__757122

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy