djhawthorn
Technical User
Quick question: Does RunOnceEx runs in the context of an administrator account or the currently logged on user?
I would assume it runs as the logged on user (and thus inherits the access that user has), but I just wanted to confirm as I can't find anything clear on this yet.
If this is the case, presumably you can use "runas" to raise the privileges of the command you want to execute?
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
The dumber they think you are, the more surprised they'll be when you kill them! ![[machinegun] [machinegun] [machinegun]](/data/assets/smilies/machinegun.gif)
![[rofl2] [rofl2] [rofl2]](/data/assets/smilies/rofl2.gif)
I would assume it runs as the logged on user (and thus inherits the access that user has), but I just wanted to confirm as I can't find anything clear on this yet.
If this is the case, presumably you can use "runas" to raise the privileges of the command you want to execute?
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
![[laughtears] [laughtears] [laughtears]](/data/assets/smilies/laughtears.gif)
![[machinegun] [machinegun] [machinegun]](/data/assets/smilies/machinegun.gif)
![[rofl2] [rofl2] [rofl2]](/data/assets/smilies/rofl2.gif)