Making a beeb and pop up happen when users logs off

Posted on 2012-09-17
Medium Priority
Last Modified: 2012-09-25

A strange one but Im sure it is possible (it must be!!).

Our users are forever leaving their USB drives in other PC's and losing them. PCs on & off our network (so GPO is not going to work here).

So what I want to do is write some code/script/command/application, that when the user logs off there is a BEEB and a pop up dialog box that reminds the user to remove their USB drive, so they dont lose the device.

Contraints are that the code should be on the USB Drive and not the PC - so that it will work regardless of the PC they are using. Also, I dont want the user s being able to disable/delete/change the code.

Any ideas?
Question by:Mark Galvin
  • 2
LVL 47

Expert Comment

ID: 38408088
Bad design having it on the USB stick.  This pretty much guarantees data loss.  Think about it.  If it is on the stick, then the stick has to be mounted.  If it then launches an app, it is going to change the last-accessed bits in the file system, causing a change to it.  

So now they have changed the file system.  But they have logged off, so how do you expect them to dismount & flush the file system?  If they yank it then they have a mounted / modified file system.  (Then consider figuring out what drive letter the program is on.  Are you going to set up a script to probe?  Too much work that way and too easy for it to go horribly wrong)

You are dealing with humans who do stupid things.  Assume they won't flush and eject, so don't place the USB file system in a unflushed/modified state on purpose if you don't have to.

Anyway, to execute a script at logoff you can use the task scheduler to do a popup.  Here is a MSFT article about it. (Process is the same even though this link says Vista)

LVL 36

Accepted Solution

mccarl earned 2000 total points
ID: 38408109
Could you not just charge the users like $100 per replacement USB drive? That may persuade them to take a bit more care! ;)

More to the point though, I think your two 'constraints' make this an unachievable goal. The only way that code that is on the USB drive could do anything like what you want, is if it is something that auto-starts on USB drive insertion. The problem is that this can easily be disabled per PC. Also, the user can probably easily reformat the USB drive to remove any content/code to implement what you want.
LVL 47

Expert Comment

ID: 38408158
There are software products that PREVENT people from using USB drives (check out a company called GFI - but it is part of their network security management suite).

USB drives are a huge security issue anyway.
LVL 93

Expert Comment

ID: 38408363
>>  I dont want the user s being able to disable/delete/change the code.  <<  that can be done by encrypting it with truecrypt

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question