Making a beeb and pop up happen when users logs off

Posted on 2012-09-17
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
    LVL 46

    Expert Comment

    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 35

    Accepted Solution

    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 46

    Expert Comment

    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 91

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    758 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now