I am not an administrator of my corporate laptop, but I belong to the "Network Configuration Operators" group. With that permission I can change the IP address and routes.
For it to work the process has to be in a kind of user-elevated mode (not plain user, not administrator).
I have a BAT script that changes routes, and the way it works is:
- Right click -> Run as Administrator
- Use my own user (yes, the same plain user i was, not "administrator")
- The script runs fine
That works fine, but i'd like to skip the right clicking.
I thought that "runas" command would work, but it doesn't get enough elevation. How can I make this work?