You show the registry key, but not the script. What does it do? Which "Trusted Source" did you get it from?
Why do you want to change permissions through the registry? It is not something I would attempt, especially (but not limited to) permissions. A wrong move there and you lock the system down period.
I have the following script to change the permission of USB:
Even after executing this the entry that I require is not deleted.