2

I have a VBScript which need to run as an administrator.

Is it possible to add some code in the script that will help with that ?

Millerbean
  • 295
  • 2
  • 8
  • 17
  • possible duplicate of [Bypass UAC in VbScript](http://stackoverflow.com/questions/5344021/bypass-uac-in-vbscript) – Helen May 22 '12 at 13:26

1 Answers1

1

Helen, take a look at the elevate command powertoy from Microsoft

http://technet.microsoft.com/en-us/magazine/2007.06.utilityspotlight.aspx

Publish the code you want to run, then we can give more advise.

The anwser Bypass UAC in VbScript from the comment above works also but has it drawback, i also use the tools RUNAS and PSEXEC from systernals.

Community
  • 1
  • 1
peter
  • 41,770
  • 5
  • 64
  • 108