Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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