My user account is an administrator account (well in the Administrator group technically). As I understand this I am always running in the standard user context except when elevation is required, which a UAC dialog allos/disallows.
My actual Administrator account on this machine is disabled and I would like to keep it disabled for security reasons.
The question then is how do I use RUNAS to launch a process with elevated privileges? It seems like the only argument used for elevation is the actual user name. How can I spawn a process within a command line with elevated privileges then if I don't have an Administrator account username to supply to RUNAS.
Maybe this isn't possible. If that is the case, that's fine, but what I'm not interested in is:
- Running cmd.exe as an administrator (neither through shift-click, right click option, or permanent flagging)
- A third party program like sudo or elevate.
- Creating another user account that is an explicit Administrator or renaming the Administrator account.