A VBScript cannot edit the registry by default on Vista. How do I get elevation (even if the user has to do something when they run the script) so that the script can edit the registry?
The error is:
--------------------------- Windows Script Host --------------------------- Script: blah blah blah.vbs Line: 6 Char: 1 Error: Permission denied Code: 800A0046 Source: Microsoft VBScript runtime error --------------------------- OK ---------------------------
My understanding was that you could edit HKCU as a normal user, but the others were restricted. I could be wrong. Regardless, there are a couple of example here to do what you want to do.