Jump to content

Recommended Posts

Posted

In our language lab, the little blighters keep playing with the Mic and Sound settings.

 

Is it possible to control these within a GPO so that on machine rebuilds we don't have to spend ages per machine reconfiguring it all?

 

I've not run Regmon just yet to capture, but if anyone has the key i need to look at I can work from there.

Posted
Ah perfect. That'll do the job. I've had a look at the commands but I can't see one to Select which input. By default Line In is the selected Input, would be great to script Microphone.
Posted

I have the following:

nircmd setsysvolume 55000 master
nircmd setsysvolume 55000 waveout

Which sets the sound output at about 90%, high enough, but low enough to avoid any distortion from cheapo sound cards.

 

for machines that use microphones I also do:

nircmd setsysvolume 40000 microphone

I found microphones need to be set around 75% for best results.

Posted
Is there any easy way of switching the Recording options so that the microphone is selected as the default input rather than the line in?

 

You can do that via a vbs startup script. There's a registry key that controls it, but you need to find the registry address for the soundcard on your machines, I don't think it will be the same for all.

 

Here's the one I use on our workstations.

 

Dim objShell, RegLocate, RegLocate1

Set objShell = WScript.CreateObject("WScript.Shell")

On Error Resume Next

 

objShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_24D5&SUBSYS_0C4A8086&REV_02#3&267A616A&0&FD#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 1\Controls\ 0\Item 0", 0, "REG_DWORD"

objShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_24D5&SUBSYS_0C4A8086&REV_02#3&267A616A&0&FD#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 1\Controls\ 0\Item 1", 1, "REG_DWORD"

objShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_24D5&SUBSYS_0C4A8086&REV_02#3&267A616A&0&FD#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 1\Controls\ 0\Item 2", 0, "REG_DWORD"

objShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_24D5&SUBSYS_0C4A8086&REV_02#3&267A616A&0&FD#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 1\Controls\ 0\Item 3", 0, "REG_DWORD"

objShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_24D5&SUBSYS_0C4A8086&REV_02#3&267A616A&0&FD#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 1\Controls\ 0\Item 4", 0, "REG_DWORD"

objShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_24D5&SUBSYS_0C4A8086&REV_02#3&267A616A&0&FD#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 1\Controls\ 0\Item 5", 0, "REG_DWORD"

objShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_24D5&SUBSYS_0C4A8086&REV_02#3&267A616A&0&FD#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 1\Controls\ 0\Item 6", 0, "REG_DWORD"

 

WScript.Quit

 

Item 0 through to Item 6 are the 7 Inputs under the Sound Control Panel. Setting Item 1 to 1 makes Mic the default.

  • 8 years later...
Posted

I use a little VBS to set the volume to 0:

 

 

Set WshShell = CreateObject("WScript.Shell")

wshshell.LogEvent 4, "setting Vol to min"

WshShell.SendKeys "{" & chr(174) & " 50}"

wshshell.LogEvent 4, "vol set"

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



  • 47 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...