Problem solve Get help with specific problems with your technologies, process and projects.

How can I prevent users from logging off and leaving devices attached?

How can I prevent users from logging off from an XP network and leaving devices attached (i.e. USB Disks or other disks in drives)? I believe it is possible to check on logout and prevent logout until a device has been removed, but I don't know how to do it.
One possible way to do this would be to have a script (either a batch file or a WSH file) that runs at logoff, and which checks the number of available drives against a list somewhere. If there are more drives available than normal, the user gets a warning and logoff is aborted.

Apparently Peter Paquette of the University of Washington, Tacoma, has written a script to detect when this sort of thing happens, but it is not available publicly (see http://css.tacoma.washington.edu/~lab/News/articles/LogoffRemMediaNotification.html for more information).

Dig Deeper on Windows systems and network management

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.