ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Shortcut to launch with admin privileges?

<< < (2/3) > >>

f0dder:
tip: ShellExecute using the "RunAs" verb. Not properly documented and feels hacky, but that's the UAC API for you, I guess :(
-f0dder (November 16, 2009, 01:08 AM)
--- End quote ---
As I recall, RunAs (in Shell & ShellExecute) was an option back in Win2k, it just never caught on because everybody just ran as Admin back then.
-Stoic Joker (November 20, 2009, 01:32 PM)
--- End quote ---
It was?

Thing is, the undocumented "RunAs" UAC thing in ShellExecute doesn't take any user credentials - so imho it's extremely misnamed.

putnum:
Hi is there a way to pass the username and password to the /runsasadmin switch automatically?

mouser:
there is no way currently, but it's an interesting idea.

Stoic Joker:
Well... While I was beating the web bushes for a bit more elegant solution to the SetSystemTime debacle (hehe) I ran across this tutorial series that looks to be right about what you're after (Replete with Code Samples):

Asking the User for Credentials

anabus:
Done, implemented in v 2.80.01; hold ctrl+shift when triggering an item to run as admin; for alias results you can also indicate a result should be run as admin with /runasadmin option.

ps. thanks for the tip f0dder.  :up:
-mouser (November 20, 2009, 10:55 AM)
--- End quote ---

This seems to work when triggering an item using Ctrl+Shift+Enter, but it doesn't seem to work for Ctrl+Shift+Numpad #. Is this not how it's implemented (and I'm just doing it wrong), or is it supposed to work?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version