Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RunOnceEx runs in the context of administrator or user privilege?

Status
Not open for further replies.

djhawthorn

Technical User
Mar 4, 2002
641
AU
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][laughtears] The dumber they think you are, the more surprised they'll be when you kill them! [machinegun][rofl2]
 
Create a .bat file with this line:
Code:
@ECHO %USERNAME% > WhoAmI.txt
Then run that .bat file from the RunOnceEx key and see which user shows up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top