Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Mute sound on Windows boot up via script or command line URGENT

- - - - -

  • Please log in to reply
12 replies to this topic

#1
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 569 posts
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.


How to remove advertisement from MSFN

#2
-X-

-X-

    Member

  • Patrons
  • 2,406 posts
  • OS:XP Pro x86
  • Country: Country Flag

Donator

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

Download all Windows XP Post SP3 High-Priority Updates with a simple double click @ xdot.tk post-12166-0-42859000-1399044129.png ]
               If someone helps you fix a problem, please report back so they and others can benefit from the solution. Thanks!


#3
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 569 posts

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
iamtheky

iamtheky

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 866 posts
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.
iamtheKy

#5
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,287 posts
  • OS:none specified
  • Country: Country Flag
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
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 569 posts

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
iamtheky

iamtheky

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 866 posts
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

Edited by iamtheky, 01 September 2010 - 10:02 AM.

iamtheKy

#8
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 569 posts
Would this work for all users?, or just the current logged in user?

#9
net_user

net_user

    Advanced Member

  • Member
  • PipPipPip
  • 371 posts
  • OS:Windows 7 x86
  • Country: Country Flag
you could also delete all the wav file in "C:\WINDOWS\Media\Windows XP Logon Sound.wav"
Hex:
526573697374616e636520697320667574696c6521

A+

#10
iamtheky

iamtheky

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 866 posts
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.
iamtheKy

#11
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 569 posts

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_*

Guest_nfljerseys_*
  • Guests
thanks for sharing this kind of stuff… great

Edited by Tripredacus, 01 September 2010 - 08:19 PM.
removed links


#13
uid0

uid0

    Advanced Member

  • Member
  • PipPipPip
  • 357 posts

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN