running script to reconsile licenses in O365 and the output is getting truncated.
script is below
Get-MsolUser -All | select displayname, licenses | Format-Table -autosize | Out-File c:\licensed-users.csv
since a user has multiple licenses, that field is getting truncated.
used the following but it also wraps up to a second line, hard to import in excel
Get-MsolUser -All | select displayname, licenses | FT Displayname, Licenses -Wrap | Out-File c:\licensed-users.csv
Is there a way to specify width of column so it does not truncate output?