📎 AI Summary:
The original poster is inquiring if it's possible to interface with the Windows DHCP client similarly to how they manage DHCP scripts in Linux, aiming to automate lease handling without fixed configurations. A responder explains that Windows manages DHCP client functions internally but offers commands like ipconfig /renew and WMI methods for lease management, suggesting that OpenVPN typically handles lease issuance for VPN connections. Overall, the discussion indicates that while Windows DHCP handling is less customizable at the client level, existing system tools can be used for lease management, and OpenVPN's default behavior covers lease assignments.

DiscerningDave

New Member
Joined
Jun 14, 2022
Messages
1
Thread Author #1
Since I found very little on this I am assuming it is not possible. However this linux guy will ask more competent Windows followers for help! I have a linux based OpenVPN tap server providing connections to clients on the local lan. I have created a dhcp script for linux clients that is completely free of all fixed ip addresses/port/proto etc on the client, everything is configured via the lease information provided by the server (domain based). This has eliminated maintenance of flat files on the client, and who doesn't like that?. In linux this is done via hooks where the dhcp client will call the hook script for "BOUND", "RELEASE", etc. Is it possible to interface with a Windows dhcp client in a similar manner?

Thank-you for your interest.
 

Solution
Windows handles most of the DHCP client side internally.
You can use ipconfig /renew or /release to renew or release a lease there are also WMI methods that can be used to take client actions on DHCP. What is your end goal as OpenVPN should handle issuing leases for the VPN pool

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
Windows handles most of the DHCP client side internally.
You can use ipconfig /renew or /release to renew or release a lease there are also WMI methods that can be used to take client actions on DHCP. What is your end goal as OpenVPN should handle issuing leases for the VPN pool
 

Solution