Kaseya Community

Enable DHCP on the fly

  • Configure DHCP.zip
    Enable DHCP on the fly.

    Have you ever ran into a new customer that has static IP addresses and you want to prevent having to walk to every computer and enable DHCP?

    This script uses the NETSH command built into windows to check current config and enable DHCP.


    Legacy Forum Name: Enable DHCP on the fly,
    Legacy Posted By Username: sourceminer
  • Great Script!

    It worked fine, but I noticed the DNS didn't change back to automatic as well.. Adding the following line should do it.. netsh interface ip set dns "Local Area Connection" dhcp


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: cberger
  • Perfect, its amazing all the built in tools there are

    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: sourceminer
  • Not being a script person myself can you show me what the whole script should look like with the DNS change?

    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: ebernard@n-m-s.biz