1

I want to be able to write scripts that execute privileged commands.

However I want users to be prompted via UI for executing these commands (then select "as Administrator" (like you can do with right-click) without needing to provide any password) and not via console password prompt.

Is there any such command for windows?

Marinos An
  • 155
  • 1
  • 8

1 Answers1

0
  1. Did you check this answer from StackOverflow?
  2. If these are PowerShell commands, have you tried appending -Confirm to the CMDlet? This will output a dialog box the technician has to click 'Yes' to continue.

That's what I do for scripts given to field technicians, so they can't say 'I didn't know what would happen'

spacenomyous
  • 1,319
  • 7
  • 15