Step 1 : Click on the Start button and Select “Settings”.
Step 2 : On the Settings Page, Click on the “Bluetooth & Devices” option.
Step 3 : Click on the ” Autoplay ” option on the right pane.
Step 4 : To Turn off the Autoplay feature , flip the switch under ” Use Autoplay for all Media and Devices” to off.
Step 5 : If you don’t want to disable the feature , you can configure the Autoplay actions. For that, you need to locate the ‘choose Autoplay Defaults’ section.
Step 6 : Under the Removable Drive, you will find different options like Configure Storage Settings, Take No Actions, Open Folders to View Files, As Me Every Time. You need to select the option as per your choice.