1. Click Start, type Gpedit.msc in the Start Search box, and then press ENTER.
If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
2. Under Computer Configuration, expand Administrative Templates, expand Windows Components, and then click Autoplay Policies.
3. In the Details pane, double-click Turn off Autoplay.
4. Click Enabled, and then select All drives in the Turn off Autoplay on box to disable Autorun on all drives.
5. Restart the computer.