Your "friend" had some program on his flash drive that wants to auto start. Try this to remove the USB devices
in the Device Manager click on "view" at the top and "show hidden devices"
click on the + next to Universal Serial Bus Controllers:
then uninstall all USB listings like "USB composite device" or "USB mass storage device"
turn the computer off and unplug all USB devices
reboot twice and plug in your USB device