Stuck with Windows clients with static network settings? This script can help to enforce the reset and / or DHCP server is available configuration.
Not only does this remove static host, subnet and gateway IP, it also removes all static DNS and WINS entries.
For my particular implementation issues, it jumps with server operating systems including PC-type servers.
Initial steps include:
1) continue only if label contains "server" IOW. a server operating system
2) List all networkAdapters, the IP-enabled
3) only continue if not DHCP enabled network adapters
4) set to DHCP enabled network adapters
5) remove static DNS entries
6) Removes static WINS entries





























