Hey all! a bit shorter one today as I am swamped at the office.
Last week one of my friends was working on deploying DHCP options to automatically adopt devices inside networks managed by a Windows DHCP server. The process is pretty straight forward – Add a vendor class, add the option, and set it to the correct IP address. Unfortunately, that of course means a lot of clicking in the DHCP console on each Windows Server he manages.
So, he asked me if I could simplify this for him by scripting it, so this short snippet can be used to set the DHCP options for all scopes, on a Windows Server to automatically adopt Unifi devices.
all that you need to change is the IP of your controller, and that’s all folks! like I said; short but sweet.
As always, Happy PowerShelling!