I need an application to run only from a specific USB flash drive. I made some test with the WMI **Win32\_Diskdrive** class and the **PNPdeviceID** property. It is a very good idea to enroll the application into a license server (web services) with this data, but I'm searching for a second method to reenforce this one in order to make the process harder to break.

I was thinking to create a second little hidden partition in the drive and locate in it as a name the serial obteined by the PNPdeviceID or other information. Any other idea, method or suggestion is accepted.

Thanks in advance.

EDIT: I already know a unique ID from the USB flash drive and the application can check if the **Interfacetype** property is "USB". I´m enrolling the application with a hash of the PNPDeviceID in a web-services suported licence manager. I'm searching for an additional second validation method.