Ask the Expert

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.

    Requires Free Membership to View

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).

This was first published in February 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: