The Disabler tool in the Windows DDK does what you want...
No idea if you can get something else equivalent for free though.

- Trevor