Prevent AutoPlay from remembering User Choice in Windows 11/10
There may be many Windows users who want to alter this relationship and they are looking to make Windows forget their choice for a particular USB. There are two easy ways to make this possible.
Using Group Policy
- In Windows 10 Pro & Enterprise Editions, press Windows Key + R combination, type put gpedit.msc in Run dialog box, and hit Enter to open the Local Group Policy Editor. 
- In the left pane, navigate here: Computer Configuration -> Administrative Templates -> Windows Components -> AutoPlay Policies 
- In the right pane of above-shown window, look for the Setting named Prevent AutoPlay from remembering user choices which is Not Configured by default. Double click on this setting to get this: 
- In the above-shown window, select Enabled and then click Apply followed by OK. Here is the policy explanation so far: You may now close Local Group Policy Editor and reboot to make changes effective. 
Using Registry Editor
- Press Windows Key + R combination, type put regedit in Run dialog box and hit Enter to open the Registry Editor. 
- Navigate here: 
- In the right pane of this registry location, right-click in the blank space, select New -> DWORD Value. Name this newly created DWORD as DontSetAutoplayCheckbox and double click the same to get this: 
- In the above-shown box, put the Value data as 1 in order to prevent AutoPlay from remembering your choice. Click OK and close the Registry Editor, reboot to observe changes. That is all you need to do!