Awesome
Workstation_USB_Monitor
NAME: Workstation_USB_Monitor.vbs
TYPE: Visual Basic Script
PRIMARY LANGUAGE: VBS
AUTHOR: Justin Grimes
ORIGINAL VERSION DATE: 6/1/2018
CURRENT VERSION DATE: 2/19/2019
VERSION: v1.9
DESCRIPTION: A simple script to be run on workstations that monitors for changes in disk drive configuration.
PURPOSE: To monitor company workstation storage devices for changes.
INSTALLATION INSTRUCTIONS:
- Copy the entire "Storage_Monitor" folder into the "AutomationScripts" folder on SERVER (or any other network accesbible location).
- Edit "sendmail.ini" with your desired email and password.
- Add a group policy object for with logon script to run the local copy of wscript.exe with the absolute path for the script specified as the main argument followed by the desired arguments for the script. (example, script directory C:\Windows\System32\wscript.exe parameter \server\AutomationScripts\Workstation_USB_Monitor\Workstation_USB_Monitor.vbs --gui)
- Verify that each workstation runs the script on user logon and that UAC is configured to allow sendmail.exe to run.
- To disable email notifications, run with the -e or --email argument set.
- To disable logging, run with the -l or --log argument set.
- To disable the diablog box that appears when new devices are detected, run with the -g or --gui argument set.
- To run silently in the backround with email notifications and logging enabled, run with the -s or --silent argument set.
NOTES: SendMail for Windows is required and included in the "Storage_Monitor" folder. The SendMail data files must be included in the same directory as "Data_Monitor.vbs" in order for emails to be sent correctly.