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…