How do I delay the launch of a program

elnino

New member
Local time
9:10 PM
Messages
2
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 Computer My Computer

Computer type
PC/Desktop
OS
windows 7 64 bits
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 Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
To my understanding by default your Firewall and Anti Virus are the first programs to start.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
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 Computer My Computer

Computer type
PC/Desktop
OS
windows 7 64 bits
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 Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
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.
 
Back
Top