Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in charge of deploying and modifying a bit of in-house software that is meant to run on end-user workstations, which run either Windows 7 or XP SP3. The goal is to maximize the amount of time the software runs on node workstations.

At present, there is a shortcut in every workstation's startup folder that runs the process in the background at login. This works well enough, but I would like to see this software run on startup rather than waiting for a user to login.

The only kinks in all of this are that it's all on an Active Directory domain and that the software itself needs an active Internet connection to run properly.

I've gathered that Task Scheduler is probably the way to go for this, but what what's the best approach to take here?

share|improve this question

Run application as service.


sc create Vm-Symantec04 binPath= "\"C:\App32\VMware\VMware Workstation\vmrun.exe\" -T ws start \"P:\VM\Sym04\Sym04.vmx\" nogui" depend= "VMAuthdService/VMnetDHCP/VMUSBArbService/VMware NAT Service"  start= auto

Vm-Symantec04 - service name

\" - double quote escape, space in command line path.

-T ws start \"P:\VM\Sym04\Sym04.vmx\" nogui" - vmware arg's

depend= "VMAuthdService/VMnetDHCP/VMUSBArbService/VMware NAT Service" - depend at services

start= auto - start mode

view service:

 Wmic service where (Name='DHCP') get caption, name, startmode, state, ProcessId, PathName

 Wmic service where (Name='Vm-Symantec04') get caption, name, startmode, state, ProcessId, PathName

Establishing a network/Internet connection:

IRPStackSize DWORD 32 hex or 50 dec.

Network provider

See too Application lifecycle management software:


share|improve this answer
What can be done in the way of establishing a network/Internet connection prior to execution? – Andrew MacCaffery May 14 '13 at 21:08
@AndrewMacCaffery Make the service depend upon the Network service. Windows will sort out the order for you so that your service only starts after the Network service has come up. – Darth Android May 14 '13 at 21:10
The Network service isn't a useful prereq, as users have to authenticate via Active Directory before the workstation establishes an Internet connection. @DarthAndroid Is there a workaround here that establishes an Internet connection via Active Directory with a provided username/password combo? – Andrew MacCaffery May 14 '13 at 21:11
@AndrewMacCaffery How do system services such as Windows Update access the internet, then? They do not authenticate under the currently logged in user. You might be able to set the logon user for your service to a valid AD user. – Darth Android May 14 '13 at 21:14
@DarthAndroid This is a fair point. I may need to reevaluate my approach if Internet connectivity isn't my issue when it comes to running the process on login. – Andrew MacCaffery May 14 '13 at 21:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.