AlexanderP Posted February 4, 2012 Report Share Posted February 4, 2012 Hi, I would like to start a program as administrator. I use the "Activate or Launch" command, but I can't find a option to "start program as administrator". I'm wrong? Do I have to use another function? Thanks & Best regards from Vienna, Alexander Quote Link to comment Share on other sites More sharing options...
Cory Posted February 6, 2012 Report Share Posted February 6, 2012 There is no facility that I know of in MEP to do this. You would have to find a way to do it externally then use the program launch or External Script to execute it. But if you get the UAC warning I don't think MEP can click "OK" for you. The whole point of all that is to prevent viruses from taking over your machine that way and required user input. Quote Link to comment Share on other sites More sharing options...
AlexanderP Posted February 6, 2012 Author Report Share Posted February 6, 2012 There is no facility that I know of in MEP to do this. You would have to find a way to do it externally then use the program launch or External Script to execute it. But if you get the UAC warning I don't think MEP can click "OK" for you. The whole point of all that is to prevent viruses from taking over your machine that way and required user input. Thanks, that's not so good, but an answer. I will look for an solution outside MEP.Best regards from Vienna, Alexander Quote Link to comment Share on other sites More sharing options...
paul Posted February 7, 2012 Report Share Posted February 7, 2012 Take a look at this to see if there's anything that might be of use. http://4sysops.com/archives/vista%E2%80%99s-uac-8-ways-how-to-elevate-an-application-to-run-it-with-administrator-rights/ If you can create a command prompt window, then you could use MEP to control running programs using that window. Quote Link to comment Share on other sites More sharing options...
AlexanderP Posted February 9, 2012 Author Report Share Posted February 9, 2012 Take a look at this to see if there's anything that might be of use. http://4sysops.com/a...strator-rights/ If you can create a command prompt window, then you could use MEP to control running programs using that window. Thanks Paul, for your hint! Quote Link to comment Share on other sites More sharing options...
pferris Posted February 16, 2012 Report Share Posted February 16, 2012 Hi ALexanderP! You didn't specify which OS you were running (XP? Win 7? etc.). Also, what would prevent you from having your macro "right click" on the application, select "Run As", check the "Other User" box, specify "Administrator" as the user, enter the admin password from your macro (as encrypted text, of course!) and keep on trucking? Maybe I don't understand the question... but I have yet to encounter a problem that I (eventually!) could resolve using MEP. My philosophy is: "If you can do it with mouse & keyboard, you can do it with MEP!". Quote Link to comment Share on other sites More sharing options...
pferris Posted February 16, 2012 Report Share Posted February 16, 2012 Hi ALexanderP! You didn't specify which OS you were running (XP? Win 7? etc.). Also, what would prevent you from having your macro "right click" on the application, select "Run As", check the "Other User" box, specify "Administrator" as the user, enter the admin password from your macro (as encrypted text, of course!) and keep on trucking? Maybe I don't understand the question... but I have yet to encounter a problem that I (eventually!) could resolve using MEP. My philosophy is: "If you can do it with mouse & keyboard, you can do it with MEP!". I can envision that Win 7 may be a little more thorny with UAC pop-ups, but even that should be addressable. Quote Link to comment Share on other sites More sharing options...
lemming Posted May 4, 2012 Report Share Posted May 4, 2012 Hi you could try Windows's built-in Runas program. It's been around since XP days, I believe. It lets you run any program under a different user account, including as Admin. More info and examples at http://ss64.com/nt/runas.html You can run it using "Activate or Launch". You should not need to specify its exact location, since it resides in \System32, which is in the default Windows path. Anyway, on my system (Win 7), the path is: C:\Windows\System32\runas.exe Hi, I would like to start a program as administrator. I use the "Activate or Launch" command, but I can't find a option to "start program as administrator". I'm wrong? Do I have to use another function? Thanks & Best regards from Vienna, Alexander Quote Link to comment Share on other sites More sharing options...
efreedus Posted September 17, 2012 Report Share Posted September 17, 2012 This seems to work for me. Instead of listing the .exe as the program to execute, list the .lnk link. And before you do, edit the properties of the link under the compatibility tab to "Run as administrator". Until I did that, my macros that used to call up the .exe itself reported "couldn't find the path or file". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.