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.
If amending this list don't forget to change the Variable Declaration!Code:; 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
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).



LinkBack URL
About LinkBacks
Reply With Quote

