Best Way To Prevent DHCP query in Windows 10

While Windows 10 is booting up, I need to block the OS to require IP address from the DHCP server for a few minutes (~10 min). What is the best way to do this.
(using script stopping the running DHCP client service while Windows 10 is loading is enough then starting the service, is an effective approach?).
I cannot disable the Network Adapter.

Thank You for your help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
Windows does not get confused loading DHCP even though loading other services.

DHCP is totally basic to Windows Networking.  The only way I know how to stop it is to use Static IP addressing. Otherwise it is going to run.
Tom CieslikIT EngineerCommented:
You can put some bat file in to your autostart or into your registry to RUN section with command

ipconfig /release

This will swap out your IP from NIC properties.

If you decide to get IP you can create another bat with command

ipconfig /renew

and use it manually or put it to Windows schedule with manually set delay


Also you can change settings for your DHCP client and change it from AUTOMATIC to AUTOMATIC DELAY

To do this you can put this command

sc config DHCP start= delayed-auto      {remeber about spacee between = and delayed-auto}

When a service is configured for a delayed automatic start, a DWORD registry value is present under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\<service name>. It's named DelayedAutoStart and it's set to 1, along with a Start value of 2—which is the normal value for automatic start.

The default delay time is of 120 seconds. But this can be changed by modifying the AutoStartDelay value in the following registry key:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
Set DHCP client to delay start and set delay start to 2 min
HKLM\SYSTEM\CurrentControlSet\services\<service name>\DelayedAutostart to 1
HKLM\SYSTEM\CurrentControlSet\services\<service name>\AutoStartDelay to 120

Open in new window

CEOs need to know what they should worry about

Nearly every week during the past few years has featured a headline about the latest data breach, malware attack, ransomware demand, or unrecoverable corporate data loss. Those stories are frequently followed by news that the CEOs at those companies were forced to resign.

Shaun VermaakTechnical SpecialistCommented:
Sorry, see second part of Tom's answer is delay start
NetRock6Author Commented:
Thanks Tom for your help.
I will try to see if your solution helps my issue.
Tom CieslikIT EngineerCommented:
Best solution provided. No more other questions from author
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.