Execute several elevated commands in shell (or similar)
问题 I have a requirement to execute several commands with elevated rights, something like: call program that modifies a .config file of a service (needs admin rights) net stop myservice (needs admin rights) net start myservice (needs admin rights) All of this dynamic, e. g. the first line could contain proxy settings, including user name and password, or any other modification to the settings file. (Settings file is in program folder, program to modify the settings file is externally provided.