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.

Published Monday, July 02, 2007 9:23 PM by stefan
Filed under: , ,

Comments

# 4sysops -- Vista???s UAC: How to elevate scripts (VBScript and JScript)

Pingback from  4sysops -- Vista???s UAC: How to elevate scripts (VBScript and JScript)