Closed martincaddick closed 2 years ago
I'll take a look.
I finally got a chance to look at this. The default output is a list. The AsTable
parameter allows you to force a table if you know it will fit your needs.
I think if you run your command without AsTable
you'll get the results you are expecting.
Markdown lists don't really have any sort of style as a table.
But maybe...after playing a bit with markdown, this might be what you are after.
Id | 37920 |
Handles | 951 |
WS | 206761984 |
PM | 153714688 |
Name | pwsh |
Path | C:\Program Files\PowerShell\7\pwsh.exe |
StartTime | 11/30/2021 9:05:28 AM |
Although there's no way to suppress that blank column headings.
Yet another option, but I don't think there is a way to force alignment.
Id : 37920
Handles : 951
WS : 206761984
PM : 153714688
Name : pwsh
Path : C:\Program Files\PowerShell\7\pwsh.exe
StartTime : 11/30/2021 9:05:28 AM
I've added support for this in v2.40.0 of the module,
Is your feature request related to a problem? Please describe. No problem, feature request
Describe the solution you'd like Running this command produces the desired details however I get a 1 row, very wide table. It would be awesome to be able to pass an additional parameter of -Transpose that would convert the columns to rows Get-SPOTenant | ConvertTo-MDTest -AsTable -Title "SharePoint" -PreContent "url of the SharePoint admin page" | Add-Content -Path .\SharePoint365.md
Describe alternatives you've considered I've previously used PSWriteWord with the -transpose switch that produced the desired outcome but I want to output in markdown tables. https://github.com/EvotecIT/PSWriteWord/blob/master/README.md
Additional context Add any other context or screenshots about the feature request here.![image](https://user-images.githubusercontent.com/73564857/134083729-3d77405c-0666-4f35-8613-3f8e286fd008.png)