This content has been marked as final.
Show 5 replies
-
1. Re: Split VM NAME in csv report use powercli
LucD May 16, 2019 10:12 PM (in response to kakekmuda)Try replacing that line with
select -Property @{N='VM';E={$vm.Name.split('(')[0].TrimEnd(' ')}}, -
2. Re: Split VM NAME in csv report use powercli
kakekmuda May 16, 2019 11:32 PM (in response to LucD) -
3. Re: Split VM NAME in csv report use powercli
LucD May 16, 2019 11:38 PM (in response to kakekmuda)Not sure what you mean.
Do you want the text between parenthesis in a separate column? -
4. Re: Split VM NAME in csv report use powercli
kakekmuda May 16, 2019 11:40 PM (in response to LucD)yes yes yes,
how great you are sir, thx u
-
5. Re: Split VM NAME in csv report use powercli
LucD May 16, 2019 11:47 PM (in response to kakekmuda)Replace that one line with these 2 lines.
You can change the name of the additional column (here 'VMInfo') to whatever you want.
select -Property @{N='VM';E={$vm.Name.split('(')[0].TrimEnd(' ')}},@{N='VMInfo';E={$vm.Name.split('()')[1]}},