Sie können den Befehl runas wie folgt verwenden:
runas /user:username program
Sie können auch etwas wie Elevate verwenden, ein Befehlszeilen-UAC-Hilfsprogramm, das speziell für den Befehl verwendet wird, für den Administratorrechte erforderlich sind:
elevate [(-c | -k) [-n] [-u]] [-w] command Options: -c Launches a terminating command processor; equivalent to "cmd /c command". -k Launches a persistent command processor; equivalent to "cmd /k command". -n When using -c or -k, do not pushd the current directory before execution. -u When using -c or -k, use Unicode; equivalent to "cmd /u". -w Waits for termination; equivalent to "start /wait command".