We help IT Professionals succeed at work.
Get Started

Autorun script from USB drive

urobins asked
Last Modified: 2010-04-21
I am doing some security testing at my company and had read about people loading USB drives with a script that auto-runs when inserted and sending email etc back.  I was hoping to try this and see how closely my users follow policy.

Does anyone know how I could code a script that would report username/computer name and either email it to me or create a log file on the network?  I just want to see who takes these and plugs them in so we can lecture them.   Thanks for any help.  I have been toying with a VB script that can report the info I need, but I don't know how to tell it to email or autorun.  Thanks for any help you guys can give!

Watch Question
IT Manager
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE