Change default user on program start

Does anyone know any way to change the default user a program starts with?(rather than the one the dopus instance is running on)

I'd basically like to run dopus in a privileged mode(since I often have to manipulate system files) yet keep the advantages of a correct permission system and uac.

You might be able to use the Task Scheduler to do this - alternatively you could set the Run as Administrator flag on the shortcut that starts Opus (but then you'd have to ok the UAC prompt on startup).

Well that does not solve the problem since I want the apps that dopus actually start to not be priviledged, hence not start as admin...

Windows doesn't provide a way to do that.

The Admin Mode in Opus is about as close as you can get. That lets you have an Opus window that's elevated (after one UAC prompt) while the other Opus windows remain normal. (Programs launched from the admin window will have admin rights but things launched from the other windows won't.)

No way to change the default action on .exe to use a runas maybe?

Not sure if RunAs can be used to de-elevate under an admin account that has elevated. (Never tried it. It might work.)

I suspect you'd have to put your password into the action which isn't ideal.

You'd probably run into problems with things launched in other ways, e.g. via context menus.