What I am working with is this (Exchange online powershell):
get-publicfolder -Identity "\TestFolder" -Recurse|Where{$_.mailenabled -eq "true"}
So what I am interested in is getting the parentpath and name properties from that.
How do I assign that to a variable so parentpath and name are on the same line
Right now if I do
$myvar = $MailEnabledFolder.parentpath,$MailEnabledFolder.name
Then the variable is built like:
- \TestFolder
- \TestFolder\Test3
- \TestFolder\Test3
- Info
- Processing
- QA
I want it to be
- \TestFolder\Info
- \TestFolder\Test3\Processing
- \TestFolder\Test3\QA
Thank you