It’s been a while since I’ve posted, and since it’s almost Christmas I thought I’d better get on with it.
Without further ado I want to post NetShell (I’m not very good at coming up with imaginative names). NetShell is a collection of 17 functions and a few supporting functions in a script module.
The functions described here have been updated since posting this article. The updated functions are available as part of the script module Indented.NetworkTools.
A PowerShell script to send a DHCP Discover request and listen for DHCP Offer responses, it can be used for finding DHCP servers (including rogue servers), or for testing DHCP servers and relays. The output from this script is an object containing a decode of the DHCP packet and a number of options.