1

I have written a command which run a powershell script as an elevated user of the 'Domain Admins' group.

I want this script to aim UAC elevated privileges it is requiring, since this script should be able to perform administrative tasks. I want it to ask then, possibly popping Windows to the currently logged user, which has launched my command.

How to mark a powershell script as requiring elevated priviliedges if UAC is activated.

I'm using standard output and error as log, it would be nice to keep them.

Cordially,

MUY Belgium
  • 2,330
  • 4
  • 30
  • 46
  • maybe this post is of interest for you: http://stackoverflow.com/questions/1566969/showing-the-uac-prompt-in-powershell-if-the-action-requires-elevation – Paul Nov 26 '14 at 14:17

0 Answers0