I have a script which I have to run frequently, but the exact moment is user-driven so I cannot use a scheduled task etc.
This script has to run with Admin-privileges (my account already has admin rights) so I cannot simply launch the script. Is there anye way to "self-elevate" this script?
very simple example:
ECHO "I would like to have admin rights to recycle the app-pool"
pause