Open Control Panel\All Control Panel Items\AutoPlay and untick this option and save.
press Winkey + R to open run box and type gpedit.msc click OK
Go to Computer Configuration-> Administrative Templates-. Windows Components -> Autoplay Policies
Look at the right panel double click on Turn off AutoPlay and choose Enabled for Options: choose All drives and Click OK.
Method 3: Disable using regedit
press Winkey + R to open run box and type regedit click OK
Goto:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Look at right and double click on NoDriveTypeAutoRun (if you don't see create it) and set value data hexadecimal value 000000ff (Decimal 255).
Thank for Your Reading.