How do I retrieve IP from DHCP via VBS?

Asked By 40 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #142891

How do I retrieve IP from DHCP via VBS?

qa-featured

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.

Login/Register to Answer

Related Questions