How to trigger UAC elevation from a script
If you need to run command with full administrator permissions in Windows Vista, you could use the elevated command prompt (by right-clicking the command prompt icon in the start menu and selection "run as administrator). However if you need to do this from a batch or script file you have to use a trick, as described in these two articles:
Note that these scripts will trigger the UAC dialog and the user must click "proceed". Thats by design to keep it secure.