If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
How to run program as administrator at startup.
I have a program that I want to run at startup, but it must be run as
administrator to work. Any ideas on how to accomplish this? -- Crash "Patriotism is the last refuge of a scoundrel." ~ Samuel Johnson ~ |
Ads |
#2
|
|||
|
|||
How to run program as administrator at startup.
On 24/03/2011 11:40, Dave "Crash" Dummy wrote:
I have a program that I want to run at startup, but it must be run as administrator to work. Any ideas on how to accomplish this? Using the task scheduler should work. -- Rob |
#3
|
|||
|
|||
How to run program as administrator at startup.
Rob wrote:
On 24/03/2011 11:40, Dave "Crash" Dummy wrote: I have a program that I want to run at startup, but it must be run as administrator to work. Any ideas on how to accomplish this? Using the task scheduler should work. It does. I just figured that out. Thanks! -- Crash "Something there is that doesn't love a wall, that wants it down." ~ Robert Frost ~ |
#4
|
|||
|
|||
How to run program as administrator at startup.
Hi, Crash.
Does this do what you want: Right-click on the program's .exe (or in the Start menu) Click Properties On the Compatibility tab, check the box (at the bottom) that says, "Run this program as an Administrator". "Dave "Crash" Dummy" wrote in message ... I have a program that I want to run at startup, but it must be run as administrator to work. Any ideas on how to accomplish this? -- Crash "Patriotism is the last refuge of a scoundrel." ~ Samuel Johnson ~ |
#5
|
|||
|
|||
How to run program as administrator at startup.
R. C. White wrote:
Hi, Crash. Does this do what you want: Right-click on the program's .exe (or in the Start menu) Click Properties On the Compatibility tab, check the box (at the bottom) that says, "Run this program as an Administrator". Unfortunately, no. That works fine if I execute the program after Windows starts, but not if I put it in the Startup folder. I am able to do what I want using the Task Scheduler, though. -- Crash I always thought Mensa was a Japanese import. |
#6
|
|||
|
|||
How to run program as administrator at startup.
On Fri, 25 Mar 2011 10:51:27 -0400, Dave "Crash" Dummy wrote:
R. C. White wrote: Hi, Crash. Does this do what you want: Right-click on the program's .exe (or in the Start menu) Click Properties On the Compatibility tab, check the box (at the bottom) that says, "Run this program as an Administrator". Unfortunately, no. That works fine if I execute the program after Windows starts, but not if I put it in the Startup folder. I am able to do what I want using the Task Scheduler, though. I have seen cases where I can't tell the shortcut in the start menu to run as administrator, but if I go to the .exe file I can. I consider that a bit weird :-) Anyway, possibly you ran int that (or not). -- Gene E. Bloch (Stumbling Bloch) |
#7
|
|||
|
|||
How to run program as administrator at startup.
Gene E. Bloch wrote:
On Fri, 25 Mar 2011 10:51:27 -0400, Dave "Crash" Dummy wrote: R. C. White wrote: Hi, Crash. Does this do what you want: Right-click on the program's .exe (or in the Start menu) Click Properties On the Compatibility tab, check the box (at the bottom) that says, "Run this program as an Administrator". Unfortunately, no. That works fine if I execute the program after Windows starts, but not if I put it in the Startup folder. I am able to do what I want using the Task Scheduler, though. I have seen cases where I can't tell the shortcut in the start menu to run as administrator, but if I go to the .exe file I can. I consider that a bit weird :-) Anyway, possibly you ran int that (or not). Nawp. I tried it with two programs, and they both ran as administrator either directly or from the shortcut, but neither ran at startup in the Startup folder. I figure those must execute before anybody is logged on. For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). -- Crash "It is not necessary to change. Survival is not mandatory." ~ W. Edwards Deming ~ |
#8
|
|||
|
|||
How to run program as administrator at startup.
On Fri, 25 Mar 2011 16:05:59 -0400, Dave "Crash" Dummy wrote:
Gene E. Bloch wrote: On Fri, 25 Mar 2011 10:51:27 -0400, Dave "Crash" Dummy wrote: R. C. White wrote: Hi, Crash. Does this do what you want: Right-click on the program's .exe (or in the Start menu) Click Properties On the Compatibility tab, check the box (at the bottom) that says, "Run this program as an Administrator". Unfortunately, no. That works fine if I execute the program after Windows starts, but not if I put it in the Startup folder. I am able to do what I want using the Task Scheduler, though. I have seen cases where I can't tell the shortcut in the start menu to run as administrator, but if I go to the .exe file I can. I consider that a bit weird :-) Anyway, possibly you ran int that (or not). Nawp. I tried it with two programs, and they both ran as administrator either directly or from the shortcut, but neither ran at startup in the Startup folder. I figure those must execute before anybody is logged on. For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). That seems a good approach. A bit OT: I vaguely remember people describing a way to get a program to run as Administrator without being bothered by UAC. You put it in the Task Scheduler with "highest privileges" and then run it from inside the scheduler. That seems pretty awkward, so it must've been needed to solve some problem that I no longer recall. -- Gene E. Bloch (Stumbling Bloch) |
#9
|
|||
|
|||
How to run program as administrator at startup.
Gene E. Bloch wrote:
On Fri, 25 Mar 2011 16:05:59 -0400, Dave "Crash" Dummy wrote: Gene E. Bloch wrote: On Fri, 25 Mar 2011 10:51:27 -0400, Dave "Crash" Dummy wrote: R. C. White wrote: Hi, Crash. Does this do what you want: Right-click on the program's .exe (or in the Start menu) Click Properties On the Compatibility tab, check the box (at the bottom) that says, "Run this program as an Administrator". Unfortunately, no. That works fine if I execute the program after Windows starts, but not if I put it in the Startup folder. I am able to do what I want using the Task Scheduler, though. I have seen cases where I can't tell the shortcut in the start menu to run as administrator, but if I go to the .exe file I can. I consider that a bit weird :-) Anyway, possibly you ran int that (or not). Nawp. I tried it with two programs, and they both ran as administrator either directly or from the shortcut, but neither ran at startup in the Startup folder. I figure those must execute before anybody is logged on. For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). That seems a good approach. A bit OT: I vaguely remember people describing a way to get a program to run as Administrator without being bothered by UAC. You put it in the Task Scheduler with "highest privileges" and then run it from inside the scheduler. That seems pretty awkward, so it must've been needed to solve some problem that I no longer recall. I spend way too much time figuring out how to get around Windows features. :-) -- Crash English is not my native tongue; I'm an American. |
#10
|
|||
|
|||
How to run program as administrator at startup.
On Fri, 25 Mar 2011 16:05:59 -0400, "Dave \"Crash\" Dummy"
wrote: For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). In the case of W32Time, since it's a standard Windows service, would you be able to accomplish the task by adjusting its properties in Services.msc? Of course, that probably wouldn't help with your third party utility. -- Char Jackson |
#11
|
|||
|
|||
How to run program as administrator at startup.
On Fri, 25 Mar 2011 17:55:01 -0400, Dave "Crash" Dummy wrote:
Gene E. Bloch wrote: On Fri, 25 Mar 2011 16:05:59 -0400, Dave "Crash" Dummy wrote: Gene E. Bloch wrote: On Fri, 25 Mar 2011 10:51:27 -0400, Dave "Crash" Dummy wrote: R. C. White wrote: Hi, Crash. Does this do what you want: Right-click on the program's .exe (or in the Start menu) Click Properties On the Compatibility tab, check the box (at the bottom) that says, "Run this program as an Administrator". Unfortunately, no. That works fine if I execute the program after Windows starts, but not if I put it in the Startup folder. I am able to do what I want using the Task Scheduler, though. I have seen cases where I can't tell the shortcut in the start menu to run as administrator, but if I go to the .exe file I can. I consider that a bit weird :-) Anyway, possibly you ran int that (or not). Nawp. I tried it with two programs, and they both ran as administrator either directly or from the shortcut, but neither ran at startup in the Startup folder. I figure those must execute before anybody is logged on. For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). That seems a good approach. A bit OT: I vaguely remember people describing a way to get a program to run as Administrator without being bothered by UAC. You put it in the Task Scheduler with "highest privileges" and then run it from inside the scheduler. That seems pretty awkward, so it must've been needed to solve some problem that I no longer recall. I spend way too much time figuring out how to get around Windows features. :-) LOL! -- Gene E. Bloch (Stumbling Bloch) |
#12
|
|||
|
|||
How to run program as administrator at startup.
Char Jackson wrote:
On Fri, 25 Mar 2011 16:05:59 -0400, "Dave \"Crash\" Dummy" wrote: For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). In the case of W32Time, since it's a standard Windows service, would you be able to accomplish the task by adjusting its properties in Services.msc? No. That's what I tried first. Setting the start to "automatic" doesn't start it. -- Crash Life is short. Eat dessert first. |
#13
|
|||
|
|||
How to run program as administrator at startup.
On Fri, 25 Mar 2011 21:05:16 -0400, "Dave \"Crash\" Dummy"
wrote: Char Jackson wrote: On Fri, 25 Mar 2011 16:05:59 -0400, "Dave \"Crash\" Dummy" wrote: For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). In the case of W32Time, since it's a standard Windows service, would you be able to accomplish the task by adjusting its properties in Services.msc? No. That's what I tried first. Setting the start to "automatic" doesn't start it. Good to know, thanks. I think your solution (using Task Scheduler) is about as simple as it gets, even better perhaps than writing a script with either the 'sc' command or the 'net start' command. -- Char Jackson |
#14
|
|||
|
|||
How to run program as administrator at startup.
Char Jackson wrote:
On Fri, 25 Mar 2011 21:05:16 -0400, "Dave \"Crash\" Dummy" wrote: Char Jackson wrote: On Fri, 25 Mar 2011 16:05:59 -0400, "Dave \"Crash\" Dummy" wrote: For the record, what I want to do is start the W32Time service at startup. It is no longer a problem because I wrote a scheduled task to do it. I'm just exploring options, like starting a third party time sync utility (abouttime.exe). In the case of W32Time, since it's a standard Windows service, would you be able to accomplish the task by adjusting its properties in Services.msc? No. That's what I tried first. Setting the start to "automatic" doesn't start it. Good to know, thanks. I think your solution (using Task Scheduler) is about as simple as it gets, even better perhaps than writing a script with either the 'sc' command or the 'net start' command. A script has the same problem as a shortcut. It needs to be run as administrator during startup, before logon. -- Crash Committed to the search for intraterrestrial intelligence. |
#15
|
|||
|
|||
How to run program as administrator at startup.
"Dave "Crash" Dummy" wrote:
I have a program that I want to run at startup, but it must be run as administrator to work. Any ideas on how to accomplish this? You don't say what flavor of win7 you've got...but if it's a business-class version (Pro/Ultimate/Enterprise) have you considered setting the script up to execute as a startup script through GPEDIT or as a domain GPO? For GPEDIT.MSC, navigate to: Local Computer Policy Computer Configuration Windows Settings Scripts (Startup/Shutdown) and point the policy to wherever you've stashed the script, which will run at startup time in SYSTEM context. It will not have access to the desktop (which hasn't been created when the script runs) so you'll probably want to redirect any error messages that might be generated to a file somewhere. Note the difference between a startup and a login script: the startup script runs at Windows initialization and in SYSTEM context; the login script runs at login time (do'h!) and in the context of the user being logged in...and, more to the point of your query, the login script requires UAC consent for elevation. One possible gotcha for you: you may find that the startup script runs before services your script requires (e.g., Windows Update, which is required for some installations even if they are entirely local) have completely initialized. That's not necessarily the case but it's something to keep in mind if things don't work the way you expect. Joe Morris |
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|