what a pretty way to disable antivirus with a simple script thanx!!!
Yes... you can't bypass avast just changing registry keys.
Anyway, the virus would need to detect which antivirus is running and disable it this way.
I hope they improve this protection on version 5.
Anyway, being an administrator, you will be able to get ownership of the registry keys and I'm not sure you would be able to forbid this action in anyway...