The command I run is....
get-vm -name "my-testvm" | Select DRSAutomationLevel
The return value is....
DrsAutomationLevel
------------------
AsSpecifiedByCluster
How can get it to return only the value "AsSpecifiedByCluster"?
I did something like this before but I can't remember how.........lol
Thanks
Use ExpandProperty
Get-VM -Name "my-testvm" | Select -ExpandProperty DRSAutomationLevel
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Use ExpandProperty
Get-VM -Name "my-testvm" | Select -ExpandProperty DRSAutomationLevel
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
For some reason I can't mark your answer as the correct answer.
Seems to be working from my side.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference