Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How do I delay the launch of a program

26 Aug 2013   #1
elnino

windows 7 64 bits
 
 
How do I delay the launch of a program

For security reasons - I need my firewall to be set up correctly before any program that uses the internet is started - I would like to delay the launch of any program by, say 50 seconds. Do note that I would like to apply this policy to a program that is manually launched by the user - in my case, Google Chrome - and not to programs that come up at the startup - and for which I am already aware of solutions like Soluto . Can this be done under Windows 7 ? Additionally, I would be grateful if I could know how to restrict changes of this option to admin users only.

Thanks


My System SpecsSystem Spec
.
26 Aug 2013   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

Welcome to the Seven Forums.

Is this in a business setting? Is there a Domain Controller involved that allows the user to log on? If not, then perhaps it would work to have the the network adapter disabled each time that the computer is shutdown and that same network adapter enabled after a minute or so after booting.

What I have in mind would require a pair of scheduled tasks (with admin rights) and a pair of batch files that use NETSH to enable/disable the network adapter of interest.
My System SpecsSystem Spec
26 Aug 2013   #3
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

To my understanding by default your Firewall and Anti Virus are the first programs to start.
My System SpecsSystem Spec
.

27 Aug 2013   #4
elnino

windows 7 64 bits
 
 

Thank you all for your replies.

To make things clear, I am using a filtering software at home from Blue Coat. It's called K9 Web Protection. I have come to the conclusion that it is the best software of its kind thus far, but I also had to modify it - using software I won't mention here - so it could suit my needs better. These alterations affected the stability of the program, which now needs a few minutes to start - which were seconds before.

I am very much interested in the solution you - UsernameIssues - mention here and would really like you to tell me more about it. However, since enabling/disabling hardware material requires admin rights, I would like to make sure that this script starts correctly for a standard user - who would still not be able to disable this script anyhow. If this could solve my issue, I would be extremely grateful for such a prompt response.
My System SpecsSystem Spec
27 Aug 2013   #5
UsernameIssues

W7 Pro SP1 64bit
 
 

When I wrote my reply, I was on a computer where I could not do much testing. I thought that there was a scheduled task trigger for computer shutdown. If the computer(s) that you are working with are able to make use of Group Policies (W7 Pro or higher), then this task is relatively simple.

Name a text file something like this...
shutdown-task.bat

Edit that file so that it contains this...
Code:
netsh interface set interface name="Local Area Connection" disabled
Place that file in this folder...
C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown


Name a text file something like this...
startup-task.bat

Edit that file so that it contains this...
Code:
ping 127.0.0.1 -n 60
netsh interface set interface name="Local Area Connection" enabled
Place that file in this folder...
C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup


Set these to run via the steps detailed here:
Run Scripts At Shutdown in Windows 7


In my testing, they run with admin privileges and the network interface will be enabled after the delay even if the computer is sitting at the log on screen.
My System SpecsSystem Spec
27 Aug 2013   #6
gregrocker

 

In addition establish a Clean boot so that nothing starts with Win7 except your AV and firewall programs. The way to do this most thoroughly is in the Troubleshooting tutorial in my signature below.
My System SpecsSystem Spec
Reply

 How do I delay the launch of a program




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Launch a program on boot - delayed, with no UAC.
Hi, I've been looking for a way to launch programs on startup without installing any "startup delayer" type of software. This post has been edited to include the solution that was kindly provided by MilesAhead. Perhaps this method might suit other users. I started with a single program as...
General Discussion
Why does the first opened program doc in front of the Quick Launch?
How do I change the taskbar to not do this, i.e. be like Vista's?
Customization
Program Sets Off Windows Defender At Launch
I have this old program I like to use, Freehand 7 (1995), but no matter what I do in Windows 7 I get the User Account Control Defender Box saying "Do you want the following program from an unknown publisher to make changes to this computer?" I tried installing the program elsewhere, even in the...
Software
Program for alphabetizing my quick launch icons?
Does anybody have any ideas of a program out there for alphabetizing my quick launch icons?
Software
Anyway to delay start-up program by 20 sec or more?
Hi, I am using Rainlendar pro and it has direct sync with google calendar. It auto-stars when I start the pc. The problem is my desktop ethernet connection is not connected yet when the program starts, resulting in an annoying message everytime it starts saying it can't sync. I noticed that if I...
General Discussion
Way to launch 2 instances of program at once
Being lazy here but is there a way to launch 2 versions of imgburn at once? Say a desktop icon I can click on or something like that?
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:59.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App