Background The easiest way to migrate from 2003 DHCP with split scopes to 2012 R2 DHCP with Failover, is to put in interim 2012 R2 split scope DHCP servers, then migrate them to final DHCP 2012 R2 servers with DHCP Failover. The reason for this is that the DHCP powershell cmdlets in 2012 R2 are superb! […]
Continue reading…
Daily Archives: October 17, 2014
DHCP – Get a List of Scopes and Scope Options from 2012 R2 DHCP Server
This powershell script gets a list of scopes and scope options from the two servers in a split scope environment. This should work from a 2008 R2 DHCP server and higher It is rough and ready, but it works. I use out-gridview , so I can copy and pate into Excel. You will need to modify […]
Continue reading…
Powershell – add a Column ,Field, Property to an object
Simple thing that I keep forgetting, how do I add a property (column) to a object in powershell $result = Get-DHCPServerv4OptionValue -ComputerName 2012-dhcp1 -ScopeID 10.104.0.0 |select *,@{label=”DHCPServer”; Expression= {“2012-dhcp1”}} the key is the pipe of whatever object you are creating to a select * command, then followed by the “column” expression (the column you want […]
Continue reading…