I have a custom .bat file that deletes the registries I'll be listing down here, but when I run it, every time I reboot my PC it asks for my login info at the mail app.

Also my icon size/location gets reset but I figured out it was this registry: `"HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags"

This is the script I run, I'd like to delete the line that resets your mail account info:

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache 

 HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags 

 HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU 



 HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store 

 HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted 








  • 1
    err... I don't want to be 'that guy' but do you want to run batch files that delete registry entries without knowing what all of it does? There may be safer ways to do the same thing... – Journeyman Geek May 21 '18 at 2:23
  • I use all of them to remove any trace of executed programs and opened folders on my PC. I play games where I can't have stuff opened because they think I cheat (they run Nirsoft Tools in other to check that) (Yes, total pprivacy offense) but yeah pretty much I have to hide anything I can. – Liiyty Mindy May 21 '18 at 4:45
  • So remove the lines one by one till you figure out which one is causing the problem. If you are really smart you can use a binary chop :) 4 restarts should be enough. – DavidPostill May 21 '18 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.