A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to run program as administrator at startup.



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 24th 11, 11:40 AM posted to alt.windows7.general
Dave \Crash\ Dummy
external usenet poster
 
Posts: 1,149
Default 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  
Old March 24th 11, 12:15 PM posted to alt.windows7.general
Rob
external usenet poster
 
Posts: 23
Default 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  
Old March 24th 11, 12:50 PM posted to alt.windows7.general
Dave \Crash\ Dummy
external usenet poster
 
Posts: 1,149
Default 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  
Old March 25th 11, 01:50 PM posted to alt.windows7.general
R. C. White
external usenet poster
 
Posts: 1,058
Default 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  
Old March 25th 11, 02:51 PM posted to alt.windows7.general
Dave \Crash\ Dummy
external usenet poster
 
Posts: 1,149
Default 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  
Old March 25th 11, 06:31 PM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default 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  
Old March 25th 11, 08:05 PM posted to alt.windows7.general
Dave \Crash\ Dummy
external usenet poster
 
Posts: 1,149
Default 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  
Old March 25th 11, 08:30 PM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default 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  
Old March 25th 11, 09:55 PM posted to alt.windows7.general
Dave \Crash\ Dummy
external usenet poster
 
Posts: 1,149
Default 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  
Old March 25th 11, 11:34 PM posted to alt.windows7.general
Char Jackson
external usenet poster
 
Posts: 10,449
Default 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  
Old March 26th 11, 12:59 AM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default 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  
Old March 26th 11, 01:05 AM posted to alt.windows7.general
Dave \Crash\ Dummy
external usenet poster
 
Posts: 1,149
Default 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  
Old March 26th 11, 01:41 AM posted to alt.windows7.general
Char Jackson
external usenet poster
 
Posts: 10,449
Default 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  
Old March 26th 11, 02:01 AM posted to alt.windows7.general
Dave \Crash\ Dummy
external usenet poster
 
Posts: 1,149
Default 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  
Old March 26th 11, 03:05 AM posted to alt.windows7.general
Joe Morris
external usenet poster
 
Posts: 289
Default 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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 08:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.