Hi
I'm looking for the best way to output data from my powershell.
Basically im running a ForEach loop and want to print different data
foreach ($line in $data){
}
Eg.
get-mailbox | select-object identity,emailaddresses
get-mailbox | format-table identity,emailaddresses
get-mailbox | format-table identity,emailaddresses -Autosize
The emailaddresses value is to long to display in my powershell window (eventhoug I have set the Width extremely long)
The output is displayed as
{smtp:jel@XXX, SMTP:jel@xxx, SIP:jel@xxx, smtp:Jere_Lain...
I would like to get the hole string
cannot get select-object or format-table to Work for me
Format-table is not good to use in my ForEach loop
is there any best practise how to output data in the powershell window in a foreach loop ?
Any input is apreciated.