The following code scans all scopes on a DHCP server and returns any reservations that have the same MAC address
Continue reading…
Monthly Archives: October 2014
Powershell to Install RSAT Features in Windows Server 2012 R2
I am setting up a couple of 2012 R2 RDS servers in a small RDS farm (of 2..) and thought it a good opportunity to see what I could do with powershell. These RDS servers are for system administrators to manager the environment from. This saves them installing all this stuff on their PC I […]
Continue reading…
Migrating from 2003 DHCP to 2012 R2 DHCP with Split Scopes to Load Balanced
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…
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…