Hi,
Need help with adding fixed value to custom column, I am able to create a blank column with below
Get-Folder DEV | get-vm | Select Name, @{N='VMState';E={$null}}
But I would like to add a value to fixed value to custom column, please help
Example : Get-Folder DEV | get-vm | Select Name, @{N='VMState';E={Permanent}}
You can use a constant value (string, int...) in the Expression part of a calculated expression.
Something like this
Get-Folder DEV | Get-VM | Select Name, @{N = 'VMState'; E = { 'Permanent' } }
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can use a constant value (string, int...) in the Expression part of a calculated expression.
Something like this
Get-Folder DEV | Get-VM | Select Name, @{N = 'VMState'; E = { 'Permanent' } }
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Cool...Thank you very much