A blog about my exerience with Clouds, Automation and Virtualization
Adding 2016 DHCP Scopes with PowerShell in Windows 2012
I have had a lot to do and that is why I have not done so much updating on the blog, soon my third article will be published on Petri IT Knowledge I have also attended the MMS in Las Vegas where I got loads of good information and meet lots of people!
In this post I want to show you the improvements in Windows 2012 and with the PowerShell native cmdlets in this version.
The task was to automatically create 2016 DHCP Scopes for clients on a DCHP server and every scope was a /29 net with 3 lease addresses and one router for each.
I tested this on a Windows 2008 R2 with the community powershell module and with the following script it took, and I am not kidding, almost 5 hours!! the module utilise the net sh commands with dhcp and probably there could be a lot of improvements for performance, and seriously, just creating one or two scopes can be done in the gui but doing over 2000 will demand a scripted way!
With the PowerShell DHCP module for WIndows 2012 I have created the following script for creating the same amount of scopes and configuration and running it took only about 1 minute!!
Comments
[…] a recent post I showed how to configure the DHCP server with multiple scopes of subnets with PowerShell and how […]