Jump to content

Recommended Posts

Posted

The attached KIX script can be run during your logoff procedure to check if a user has left any USB Mass Storage devices plugged into the computer. This includes USB Sticks!

 

Although devices such as USB CD/DVD drives will not be detected, USB Card Readers will be picked up. This is by design (for us at least), as Card Readers here are loaned from the IT Dept so on logoff need to be returned.

 

Some Internal Card Readers are connected by a motherboard Internal USB connection and appear as USB Card Readers; these need to be added to the exemptions list in the script.

 

e.g.

; Insert device IDs here for devices which are permanently attached to a computer
DIM $Exemptions[3]
$Exemptions[0] = "&VEN_TEAC&PROD_USB___HS-CF_CARD&" ; Internal card reader for Dell OptiPlex 740
$Exemptions[1] = "&VEN_TEAC&PROD_USB___HS-MS_CARD&" ; Internal card reader for Dell OptiPlex 740
$Exemptions[2] = "&VEN_TEAC&PROD_USB___HS-SD_CARD&" ; Internal card reader for Dell OptiPlex 740
$Exemptions[3] = "&VEN_TEAC&PROD_USB___HS-XD/SM&" ; Internal card reader for Dell OptiPlex 740

If amending this list don't forget to change the Variable Declaration!

 

To find the device id to be added to the exemptions list, check Device Manager > (a Device) > Details > Device Instance ID.

 

Enjoy!

 

(Released under GPL).

CheckForUSBStorage.zip

  • Thanks 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...