Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does anyone know how to disable the sound card when a particular user logs on to Windows XP?

My last pair of speakers was blown by an inconsiderate user and I want to disable the sound to the speakers only when a particular user logs on.

The PC has multiple users logged on (one of which is me).

share|improve this question

1 Answer 1

You can use Microsoft's devcon utility to disable a driver from the command-line. devcon is like a command-line Device Manager; you can list devices, enable them, disable them, etc. See this answer for some basic examples.

With devcon and administrator privileges, you can create a script that disables the sound driver. Then set it as a login script for that user via the Group Policy editor.

You'd also need to create a re-enabling script -- either set as a logoff script for that user, or as a login script for everyone else. If you don't, your users will have to reenable the soundcard manually.

See this answer (thanks, Ivo) for how to assign a login script to a user or group, as well as a handy scripting howto.

Note: This may not be enough; just because devcon disables a device doesn't mean the problem user can't just re-enable it from the Device Manager. You'd have to restrict the account through other means to prevent that.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.