Monitoring USB license key removal

Posted on 2014-07-22
Medium Priority
Last Modified: 2014-07-30
I have 12 workstations running a very high-end machining application. The software's license manager detect the presence of USB key with a license number... I would like to be notified by email whenever any of these USB devices  are removed or inserted. The workstations are all Windows 7, the security key's are USB Hasplsm running a Sentinel driver. I suspect Powershell is the best option for reporting this. Any thoughts or suggestions?
Question by:Lee Ingalls
LVL 58

Accepted Solution

McKnife earned 2000 total points
ID: 40211877

Powershell can do a lot, but here I would use blat.exe command line mailing in conjunction with event triggered tasks.
Like this: USB drive inserted ->windows creates an event->that event triggers the mailing task.

I have done this before but with win8.1 and USB mass storage keys. It does work similar with win7, see http://superuser.com/questions/219401/starting-scheduled-task-by-detecting-connection-of-usb-drive where it says "It should be quite easy using EventVwr" - maybe that works for the HASP keys as well.

Author Closing Comment

by:Lee Ingalls
ID: 40228854
Thank you McKnife!

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

You have missed a phone call. The number looks like it belongs to the bunch of numbers which your company uses. How to find out who has just called you?
The PowerShell Core 6.0 of .NET release is just the beginning. The upcoming PowerShell Core 6.1 would have artificial intelligence and internet of things capabilities. So many things to look forward to in the upcoming release.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

624 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