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 |
#16
|
|||
|
|||
How to run program as administrator at startup.
"Dave \"Crash\" Dummy" wrote on Fri, 25 Mar 2011
21:05:16 -0400 in 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. Set the start to "automatic (delayed start)". -- Carroll B. Robbins, Jr. |
Ads |
#17
|
|||
|
|||
How to run program as administrator at startup.
Carroll Robbins wrote:
"Dave \"Crash\" Dummy" wrote on Fri, 25 Mar 2011 21:05:16 -0400 in 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. Set the start to "automatic (delayed start)". Been there, done that. I tried both "automatic" and "automatic (delayed start)" without success. -- Crash "Facts are stubborn things, but statistics are more pliable." ~ Laurence J. Peter ~ |
#18
|
|||
|
|||
How to run program as administrator at startup.
Joe Morris wrote:
"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. I am running Windows 7 Ultimate x64. I was able to successfully run a script to start the time service using the Group Policy Editor. The bad news is that the Group Policy Management Console is not installed (and not available). There is no listing in the "Administrative Tools" menu for "Local Computer Policy." I had to create a shortcut an add it myself. There are no sample scripts available. Fortunately, I am familiar with VBScript, and the script I constructed worked. -- Crash Life is short. Eat dessert first. |
#19
|
|||
|
|||
How to run program as administrator at startup.
"Dave "Crash" Dummy" wrote in message ... Joe Morris wrote: "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? [recommendation to use GPEDIT to have the system invoke a startup scripts] I am running Windows 7 Ultimate x64. I was able to successfully run a script to start the time service using the Group Policy Editor. The bad news is that the Group Policy Management Console is not installed (and not available). I don't see how that could be the case for a normal system. I work mostly with Enterprise, but after seeing your comment I did a fast build of Ultimate 64 and invoking "GPEDIT.MSC" (orb - type GPEDIT.MSC - press ENTER) opens up the group policy editor without any problems. The path in the left pane of the editor that I gave upthread: Local Computer Policy Computer Configuration Windows Settings Scripts (Startup/Shutdown) leads to the option to specify which script(s) are to be run at startup. There is no listing in the "Administrative Tools" menu for "Local Computer Policy." I had to create a shortcut an add it myself. There are no sample scripts available. Fortunately, I am familiar with VBScript, and the script I constructed worked. That sounds like you're looking in the START menu; what is there if you enable the administrative tools display is a link to a different policy editor. Just invoke GPEDIT.MSC (or, if you prefer, run MMC and load the snap-in named "Group Policy Object Editor"...same result other than a slightly different set of menu items). Joe |
#20
|
|||
|
|||
How to run program as administrator at startup.
Joe Morris wrote:
"Dave "Crash" Dummy" wrote in message ... Joe Morris wrote: "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? [recommendation to use GPEDIT to have the system invoke a startup scripts] I am running Windows 7 Ultimate x64. I was able to successfully run a script to start the time service using the Group Policy Editor. The bad news is that the Group Policy Management Console is not installed (and not available). I don't see how that could be the case for a normal system. I work mostly with Enterprise, but after seeing your comment I did a fast build of Ultimate 64 and invoking "GPEDIT.MSC" (orb - type GPEDIT.MSC - press ENTER) opens up the group policy editor without any problems. The path in the left pane of the editor that I gave upthread: Local Computer Policy Computer Configuration Windows Settings Scripts (Startup/Shutdown) leads to the option to specify which script(s) are to be run at startup. There is no listing in the "Administrative Tools" menu for "Local Computer Policy." I had to create a shortcut an add it myself. There are no sample scripts available. Fortunately, I am familiar with VBScript, and the script I constructed worked. That sounds like you're looking in the START menu; what is there if you enable the administrative tools display is a link to a different policy editor. Just invoke GPEDIT.MSC (or, if you prefer, run MMC and load the snap-in named "Group Policy Object Editor"...same result other than a slightly different set of menu items). That's what I did. I must have misunderstood. I was looking for "Group Policy" or "Local Computer Policy" on the Start menu or the Control Panel by default. BTW, it can be added to the Control Panel with a registry tweak: http://www.sevenforums.com/tutorials...cy-editor.html -- Crash What happens online, stays online. |
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|