I am working on extracting a variable with powershell for a Citrix farm.
I use:
$farmname = Get-XAFarm | Select-Object farmname
this puts the below into the variable
FarmName
--------
MY FARM NAME HERE
I just need to pull the farm name itself or trim the rest off. So i don't need:
FarmName
--------
Is there a way to only get what I need?
I use:
$farmname = Get-XAFarm | Select-Object farmname
this puts the below into the variable
FarmName
--------
MY FARM NAME HERE
I just need to pull the farm name itself or trim the rest off. So i don't need:
FarmName
--------
Is there a way to only get what I need?