Instead of deleting each drive separately, you can do
code:
use * /delete

Secondly, by default, only local administrators can write to HKEY_LOCAL_MACHINE.
_________________________
There are two types of vessels, submarines and targets.