N/APosted on - 05/16/2013
Hello fellow Techyv members. How do I retrieve IP from DHCP via VBS? I want to install a software on a PC in my workstation. I need a code or script to get the correct IP address for that particular system. Any help would be much appreciated. Thanks.
How do I retrieve IP from DHCP via VBS?
Here is a code written in VBS for DCHP valid IP address query and not all zero addresses. Although this code reads only the local machines IP address, it is possible to get information from remote systems by replacing "." in the WMI query and adding exceptions to the Windows firewall.
Provided in this code sample are the details of its creator, date it was created and the creator's URL address.