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.
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 $Exemptions = "&VEN_TEAC&PROD_USB___HS-CF_CARD&" ; Internal card reader for Dell OptiPlex 740 $Exemptions = "&VEN_TEAC&PROD_USB___HS-MS_CARD&" ; Internal card reader for Dell OptiPlex 740 $Exemptions = "&VEN_TEAC&PROD_USB___HS-SD_CARD&" ; Internal card reader for Dell OptiPlex 740 $Exemptions = "&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.
(Released under GPL).
There are currently 1 users browsing this thread. (0 members and 1 guests)