Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i am looking to delay a program at startup for 2 mins, i know there are startup programs out there but need a registry tweek as i need then to push it out as a GPO to 200 machines. can anyone advise if this can be done and if so how and where!?! thanks

share|improve this question
    
Do you have to use the registry or will any built-in windows thing (Namely, task scheduler) work? –  Chipperyman Sep 12 '13 at 0:00
    
It would help if you told us what program you were trying to delay at startup. –  Josh R Sep 12 '13 at 1:06
    
it is a non windows program –  david Sep 12 '13 at 23:29

1 Answer 1

Try using this trick as the command to start your application. For instance, if you were starting Notepad.

ping -n 1 -w 120000 1.1.1.1 || C:\Windows\System32\Notepad.exe
  • -n 1 — signifies to send only one packet.
  • -w 120000 — means to wait 120,000 milliseconds (2 minutes) for the packet.
  • 1.1.1.1 — is a reserved IP address that will never resolve.
  • || — means OR, and will wait for the first program to finish, then execute the second.

Other options include:

  • Writing a batch script, or VBScript to pause and then execute your program and adding the script to the startup instead.
  • Using GPO to push out a scheduled task configured to start at logon with a delay.
share|improve this answer
1  
think i've found it the service was located in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services and there was an dalayedautostart registry in there under the service i needed. modified it and pushed nee registry out over GPO. all seems good thanks –  david Sep 12 '13 at 23:30
    
@david, it would have been helpful to know the program was an installed service. –  druciferre Sep 13 '13 at 2:00

Your Answer

 
discard

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.