defraging registry

I can’t degrag my registry anymore, because acces to registry entries is denied. I just wonder is Avast now blocking attempts to rewrite registry entries? This problem started after installing Avast 2015. I have been able to defrag before. I have tried stopping Avast services, but that didn’t help.

I found this answer on some registry defrag site regarding to errors. (not the same app i’m using though):

Most likely, you are getting this error because Registry Defrag is conflicting with your anti-virus. Some anti-viruses (we know about BitDefender and Auslogics Antivirus) block all attempts to rewrite registry entries, which doesn’t let Registry Defrag do its job. If that’s the case, then the only solution is to uninstall your antivirus.

What os/sp?
What exact version of avast?
What are you using to clean up/defrag the registry?

I have avast 2015.10.0.2206 and Glary tools and have no problem if I want to defragment the registry.

Windows 7 Home Premium. Avast 2015.10.0.2206. I have Free Registry Defrag and NTREGOPT, and with both i got errors.

EDIT: I just did defragging in Safe-mode, and at least it worked!

Don’t know if it has anything to do with it but…
Free Registry Defrag is over 4 years old and NTREGOPT is over 9 years old.
Please try the Glary Tools and let me know if that is working.

Nah, i’m satisfied it did defrag in Safe-mode. Dunno the reason why it didn’t in normal mode though, because it used to work.

Next time you can temporarily disable avast! self-defense module in Settings → Troubleshooting. That’s it that doesn’t allow registry defrag operation.

Stopping Avast services won’t do that?

No, this as you can say, a hidden service.
But I don’t have to disable it.
Defrag works fine for me if everything is enabled.
I suggest you perform a clean installation of avast and see if the problem still persists.