Coding Thread, USB Device Prompter in Coding and Web Development; Hi all,
I was getting a bit fed up with teachers and students forgetting to remove their usb devices, so ...
2nd February 2011, 10:20 PM #1
USB Device Prompter
I was getting a bit fed up with teachers and students forgetting to remove their usb devices, so I've written a program that will warn them when the log off that they have USB Devices still connected, and provide a means of ejecting them individually. It even changes color for 10 seconds at the beginning just to get the users attention
The program should run as a normal user, even a restricted one as the script is running from program files (tested on RM CC3)
The program can be downloaded from http://www.nbdev.co.uk/media/p/4123.aspx. You'll need .net 4 cp to run it.
Install via Group Policy, and add a log out script pointing to c:\program files (x86)\Crickhowell High School\CHS USB Alert\USBAlert.exe.
Parameters can be /nosound /timeout xx
Last edited by nickbro; 2nd February 2011 at 10:35 PM.
9 Thanks to nickbro:
andyturpie (19th September 2012), Arthur (1st March 2011), fawkers (3rd February 2011), FN-GM (21st March 2011), glennda (2nd February 2011), LosOjos (21st March 2011), mac_shinobi (1st March 2011), rh91uk (2nd February 2011), somabc (21st March 2011)
IDG Tech News
2nd February 2011, 10:30 PM #2
Would be interested in this, I will drop you a PM with my details.
2nd February 2011, 10:30 PM #3
Looks like another fantastic app by yourself. Will it work on vanilla setups?
2nd February 2011, 10:35 PM #4
Originally Posted by linkazoid
Same as this - would be really good if it did.
2nd February 2011, 10:36 PM #5
Yep, it's just a .net 4 WPF application.
2nd February 2011, 10:37 PM #6
Note: Download Link Added USB Alert - nb development
2nd February 2011, 11:02 PM #7
Thank you so much! A teacher actually emailed me asking if this was possible. Going to deploy this tommorow - thanks again!
1st March 2011, 09:16 AM #8
Is it possible to auto eject the device when they logoff and display your warning?
1st March 2011, 09:21 AM #9
Unfortunately not. When I had v1 it was but v1 would only run as an admin. I changed the code to use the Windows Device Eject dialogue instead of a custom one to allow it to work as a standard user
1st March 2011, 09:37 AM #10
I haven't tried it myself yet, but I think you could use the OnUserLogoff event in USBDLM to run USB Device Prompter (or RemoveDrive).
Originally Posted by plexer
21st March 2011, 04:11 PM #11
- Rep Power
21st March 2011, 04:11 PM #12
- Rep Power
Hi there, nice but a simple copy of usbalert on USB Alert - Introduction - Don't forget your USB stick or the download page
A con of nb's tool is the .net framework. You let the users install the .net framework.
USB alert on USB Alert - Introduction - Don't forget your USB stick is not depending on the .net framework en talks directly to the windows API's.
So, therefore you can put the small tool on your usb stick and activate it by autorun. Just look at
21st March 2011, 04:15 PM #13
nickbro's program looks much more user friendly, and most machines will have the .net framework installed as a matter of course. Add to that he's a respected member of the community and not a one time poster, and I think I'll stick with nickbro's program, thankyouverymuch
Originally Posted by Rick-y
21st March 2011, 04:16 PM #14
Very nice, although it would be helpful not to install it in Crickhowell High School in Program Files!
21st March 2011, 05:51 PM #15
- Rep Power
aha friend-politics :-)
I'm up to 3 posts...!
By lionsl2005 in forum How do you do....it?
Last Post: 27th January 2009, 10:22 AM
By bigtime5001 in forum How do you do....it?
Last Post: 21st December 2008, 07:05 PM
By Geoff in forum Jokes/Interweb Things
Last Post: 22nd April 2008, 01:13 PM
By sqdge in forum Windows
Last Post: 31st July 2007, 04:47 PM
By timbo343 in forum Windows
Last Post: 28th September 2006, 03:12 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)