First type gpedit.msc in Run command (win+R).
On the Left side Expand
+-User Configuration
+-Administrative templates
+- System
Click "System" and then go to the Right side double click
"Turn off Autoplay"
Click on "Enable"(enable bcoz it asks for to turn off autoplay) and select "All drives" from the drop down list below and click ok...
Thank You.