<p>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?</p>

<p>The error is:</p>

<pre><code>---------------------------
Windows Script Host
---------------------------
Script: blah blah blah.vbs
Line:   6
Char:   1
Error:  Permission denied
Code:   800A0046
Source:     Microsoft VBScript runtime error

---------------------------
OK   
---------------------------
</code></pre>

To make it work with native VBScript, you will most likely need a code signing certificate and sign your script with that. More info is in that thread at
tek-tips.com
.
You could try to write the intended changes to a .reg file and call
```
regedit.exe
```
with that. Maybe this triggers UAC. Did not tried that, though. I have no Vista around right now. :-)