We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8feae3b commit 7a06a56Copy full SHA for 7a06a56
Win11-Explorer-Fix.bat
@@ -101,6 +101,15 @@ if /i "%restoreOneDrive%"=="y" (
101
) else (
102
echo OneDrive entry was not restored.
103
)
104
+
105
+:: Ask if the user wants to restore annoying USB notifications
106
+set /p disableAnnoyingUSB=Do you want to restore the annoying USB notifications (ex. Scan and Fix)? (y/n):
107
+if /i "%restoreAnnoyingUSB%"=="y" (
108
+ reg add HKCU\HKCU\SOFTWARE\Microsoft\Shell\USB /v NotifyOnUsbErrors /t REG_DWORD /d 0 /f
109
+ echo Annoying USB notifications have been disabled.
110
+) else (
111
+ echo Annoying USB notifications have not been disabled.
112
+)
113
goto :restartExplorer
114
115
:restartExplorer
0 commit comments