+ Post New Thread
Results 1 to 12 of 12
Windows Thread, Win7 - Students Renaming Playback Devices in Technical; Hi EduGeekers! Our students have found out a way of renaming playback devices to all sorts of funky names by ...
  1. #1

    Join Date
    Nov 2012
    Location
    Where you left me...
    Posts
    499
    Thank Post
    63
    Thanked 25 Times in 23 Posts
    Rep Power
    8

    Win7 - Students Renaming Playback Devices

    Hi EduGeekers!

    Our students have found out a way of renaming playback devices to all sorts of funky names by right clicking 'Sound Icon - Playback Devices - Properties'.

    I know there is a GPO that disables/hides the sound icon altogether, however that stops students being able to adjust the volume. I was just wondering if anyone has found out how to prevent changes to the playback devices without hiding the icon?

    Thanks

    Liam

  2. #2
    Boredguy's Avatar
    Join Date
    Jun 2011
    Location
    Swindon
    Posts
    597
    Thank Post
    4
    Thanked 133 Times in 124 Posts
    Rep Power
    50
    We found our students doing this very soon after rolling out Windows 7, and could never find a GPO solution for it.
    However, as part of our workstation startup script, we run a VBS file which checks for a exported copy "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur rentVersion\MMDevices\Audio" that is stored on the local computer.
    If it finds that reg file, it reimports it which gets rid of what ever message little Jonny thought would be funny instead of the word "Speakers"

    If the file does not exist (which is normally just after the workstation has been built) it will export the reg fragment ready for the next startup cycle.

    It is not the most advanced solution to stop them doing it, but does mitigate the fall out, as staff know they can just reboot the workstation to clear the changed text.

  3. Thanks to Boredguy from:

    L3OUGH (30th April 2014)

  4. #3

    Join Date
    Nov 2012
    Location
    Where you left me...
    Posts
    499
    Thank Post
    63
    Thanked 25 Times in 23 Posts
    Rep Power
    8
    Hi @Boredguy, thanks for the response, is there any chance we could get a copy of the VBS script you use for this, pretty please?

  5. #4
    Boredguy's Avatar
    Join Date
    Jun 2011
    Location
    Swindon
    Posts
    597
    Thank Post
    4
    Thanked 133 Times in 124 Posts
    Rep Power
    50
    'Set the varible of objShell to interact with system information and environment variables.
    Set objShell = CreateObject("WScript.Shell")

    'Set the varible of objFSO to interact with the File System.
    Set objFSO = CreateObject("Scripting.FileSystemObject")

    'AudioSettings

    'If the SoundCheck file exists do the following.
    If objFSO.FileExists ("C:\Windows\SoundCheck.reg") then

    'Merge file into registry
    strCommand = "regedit /s " & chr(34) & "C:\Windows\SoundCheck.reg" & chr(34)
    objShell.Run strCommand, 0, TRUE

    Else

    'Extract Registry
    strCommand = "regedit /E " & chr(34) & "C:\Windows\SoundCheck.reg" & chr(34) & " " & chr(34) & "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur rentVersion\MMDevices\Audio" & chr(34)
    objShell.Run strCommand, 0, TRUE

    'End of If Statement for Existance of SoundCheck file.
    End If

    'Exit Script
    Wscript.Quit
    It's not very complex or tidy but has been working nicely for 3 years now.

  6. #5
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,801
    Thank Post
    215
    Thanked 265 Times in 215 Posts
    Rep Power
    68
    You can disable right click on desktop, still works for programs. You can also hide the sound icon. if your keyboards have volume on them.

  7. #6

    Join Date
    Nov 2012
    Location
    Where you left me...
    Posts
    499
    Thank Post
    63
    Thanked 25 Times in 23 Posts
    Rep Power
    8
    Quote Originally Posted by Boredguy View Post
    It's not very complex or tidy but has been working nicely for 3 years now.
    Cheers for that @Boredguy, it doesn't seem to be working though, any chance you could repost it using the [CODE] tags please?

  8. #7
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,225
    Thank Post
    47
    Thanked 157 Times in 138 Posts
    Rep Power
    47
    We hide all taskbar icons and provide a shortcut to the volume mixer on their desktops.

  9. #8

    Join Date
    Nov 2012
    Location
    Where you left me...
    Posts
    499
    Thank Post
    63
    Thanked 25 Times in 23 Posts
    Rep Power
    8
    Thanks for the responses guys, do these suggestions still allow the students to access the properties window for the playback devices though? As this is where the students are changing the names.

  10. #9
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,225
    Thank Post
    47
    Thanked 157 Times in 138 Posts
    Rep Power
    47
    Mine doesnt, no, but that is locked via GPO.

  11. #10
    Boredguy's Avatar
    Join Date
    Jun 2011
    Location
    Swindon
    Posts
    597
    Thank Post
    4
    Thanked 133 Times in 124 Posts
    Rep Power
    50
    Code:
    'Set the varible of objShell to interact with system information and environment variables.
    Set objShell = CreateObject("WScript.Shell")
    
    'Set the varible of objFSO to interact with the File System.
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    
    'AudioSettings
    
    'If the SoundCheck file exists do the following.
    If objFSO.FileExists ("C:\Windows\SoundCheck.reg") then
    
        'Merge file into registry
        strCommand = "regedit /s " & chr(34) & "C:\Windows\SoundCheck.reg" & chr(34)
        objShell.Run strCommand, 0, TRUE
    
    Else
    
        'Extract Registry
        strCommand = "regedit /E " & chr(34) & "C:\Windows\SoundCheck.reg" & chr(34) & " " & chr(34) & "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio" & chr(34)
        objShell.Run strCommand, 0, TRUE
    
    'End of If Statement for Existance of SoundCheck file.
    End If
    
    'Exit Script
    Wscript.Quit

  12. Thanks to Boredguy from:

    L3OUGH (1st May 2014)

  13. #11

    Join Date
    Nov 2012
    Location
    Where you left me...
    Posts
    499
    Thank Post
    63
    Thanked 25 Times in 23 Posts
    Rep Power
    8
    Quote Originally Posted by Boredguy View Post
    Code:
    'Set the varible of objShell to interact with system information and environment variables.
    Set objShell = CreateObject("WScript.Shell")
    
    'Set the varible of objFSO to interact with the File System.
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    
    'AudioSettings
    
    'If the SoundCheck file exists do the following.
    If objFSO.FileExists ("C:\Windows\SoundCheck.reg") then
    
        'Merge file into registry
        strCommand = "regedit /s " & chr(34) & "C:\Windows\SoundCheck.reg" & chr(34)
        objShell.Run strCommand, 0, TRUE
    
    Else
    
        'Extract Registry
        strCommand = "regedit /E " & chr(34) & "C:\Windows\SoundCheck.reg" & chr(34) & " " & chr(34) & "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio" & chr(34)
        objShell.Run strCommand, 0, TRUE
    
    'End of If Statement for Existance of SoundCheck file.
    End If
    
    'Exit Script
    Wscript.Quit
    Brilliant! Thank you very much @Boredguy, that works a treat!!

  14. #12

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,212 Times in 761 Posts
    Rep Power
    395
    This has come up before. My solution is to set a Deny ACL for Pupils on the DLL file which provides the Playback Devices UI. The volume control can still be used as normal.

    Full details here: Disable Device name Changes

SHARE:
+ Post New Thread

Similar Threads

  1. Win XP - Default Sound Playback Device
    By bodminman in forum Windows
    Replies: 7
    Last Post: 21st February 2012, 03:14 PM
  2. Allowing Student's Personal Devices (BYOD) - for/against
    By sonofsanta in forum Network and Classroom Management
    Replies: 41
    Last Post: 25th November 2011, 02:08 PM
  3. Students using own devices to record videos (iPods, Phone Cameras Etc)
    By firefox_2006 in forum AV and Multimedia Related
    Replies: 15
    Last Post: 21st July 2011, 10:17 AM
  4. Setting Default Audio playback device
    By Admiral208 in forum Scripts
    Replies: 4
    Last Post: 20th September 2010, 02:55 PM
  5. Media playback device
    By plexer in forum How do you do....it?
    Replies: 0
    Last Post: 13th November 2009, 11:41 AM

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
  •