6.02.2015

Disable Scan And Fix when inserting a Removable Disk in Windows

I easily found the solution online to configure this feature in Windows, but I never saw a download hosted that would just change it for you, so I made one and I'm hosting it.

This downloadable .reg file changes one registry entry when opened (merged):
Disable the Shell Hardware Detection Service from Auto start in Windows.

The function of this Service is to monitor for removable media being inserted and to prompt the user to Scan and Repair (often erroneously, especially if you've been removing usb devices without "safely removing or ejecting").

This setting always consequently disables Auto-play and Windows Image Acquisition. I think WIA is mainly for a finite list of cameras and other imaging devices, and that it shouldn't affect the user's ability to browse the contents of imaging devices' storage directories.

Do not apply this setting if you want to continue using autoplay for audio and video discs or for document type analysis for external and flash disks.

If you usually preemptively have a My Computer / This PC window open in explorer, and you always ignore the safely remove hardware feature and scan and fix message whenever you insert media like I do, then this command is for you!

Disable RemovableDisk ScanAndFix WIA Autoplay
Everyone is free to execute, modify, and duplicate this file; and the end user is responsible for any resultant consequence. The exact code can be viewed by opening the file in a text editor, and is as follows:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ShellHWDetection]
"Start"=dword:00000004

If only I knew a way of disabling Scan and Fix, whilst also having autoplay open the storage folder of the disk insterted. Then I'd need a way to also keep the option to autoplay audio and video in a media player...

"Will anyone read this?" he thought to himself aloud, typing away, alone in his office. "Will whoever needs to use it be able to find it?" he third personally wondered. "Will anyone find this post or read it in another way, then decide they want to use the download, having previously never considered it?" he looked around the room. Connected to his office was a warehouse without the division of interior walls. His thoughts echoed silently until suddenly they became deafening and he realized that the world we are forced to see is false and nothing is true. Then he made this dream real. "Um, I was wondering, um, why has anyone ever had a dream, that you um you had, um dedotated wam, you you you could do, to a server, you could do so, you, even be far as you will, you want, what's the wecommended amount of problem make, when you no dedoteded wam problem have you don't want to go to a server I should have to do you so much you could do more like anything?"

META related:

Bonus examples of Google Drive shared file [(No) preview (available)] url links

https://drive.google.com/open?id=THIS&authuser=0
https://drive.google.com/file/d/THIS/edit?usp=sharing

and of a Google Drive shared file direct download link:

https://docs.google.com/uc?export=download&id=THIS

h/t http://www.bloggeryard.com/2014/01/upload-files-for-download-in-blogger.html

edit: i actually fucked up the code in the original file and in the quote block of the post, this was corrected by omitting gratuitous quotes around the dword value in the code. The .reg file linked was also edited accordingly with a Google Drive Notepad editor. This appended a.txt file extension, and on reflection, this is probably a pretty important security feature. The url of the link has been updated.

No comments:

Post a Comment