+ Post New Thread
Results 1 to 1 of 1
Scripts Thread, Check for USB Storage Plugged in at Logoff: Script Available in Coding and Web Development; The attached KIX script can be run during your logoff procedure to check if a user has left any USB ...
  1. #1

    Join Date
    Aug 2009
    Posts
    7
    Thank Post
    0
    Thanked 6 Times in 4 Posts
    Rep Power
    0

    Check for USB Storage Plugged in at Logoff: Script Available

    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.
    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
    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).
    Attached Files Attached Files

  2. 2 Thanks to McTedo:

    OutToLunch (7th September 2009), Scruff (7th September 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. Storage Server Spec Check
    By Tricky_Dicky in forum Hardware
    Replies: 8
    Last Post: 30th June 2009, 11:00 AM
  2. A script to check for UAC
    By Oops_my_bad in forum Scripts
    Replies: 0
    Last Post: 29th April 2009, 11:31 AM
  3. logoff script to delete registry key
    By ICMC in forum Scripts
    Replies: 3
    Last Post: 26th January 2009, 10:37 PM
  4. Logoff Script problems and GPO
    By placky in forum Windows
    Replies: 3
    Last Post: 27th March 2008, 06:03 PM
  5. Replies: 7
    Last Post: 27th November 2005, 10:41 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •