Query or change DHCP settings of all XP workstations in AD

Due to a DHCP failure, a client had to go through and set all their workstations to static IP addresses. This is approximately 75 workstations throughout their environment. This week, I am tasked with fixing their DHCP issues, and resetting all the workstations back to using DHCP.

This broad-stroke VBScript searches for all workstations in an environment, and queries their DHCP settings for all of them. By removing a single comment, the same script can be used to set all the same workstations to use DHCP (which can be dangerous).

It needs a little work troubleshooting. It gets settings for about 90% of the computers on the local domain, but some return nothing. It's pinging, so it must be on the network. Possibly the PC is using a non-standard NIC, that doesn't support WMI? Maybe a firewall is blocking the query? Maybe it has simply been too long and the computer has lost it's DHCP lease, and not gotten a new one (waiting for someone to use it)??

AttachmentSize
DHCPUpdate.zip2.28 KB

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <blockquote> <center> <hr> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options