I am using the get-smbconnection cmdlet and would like to know how is it possible to split the 6 columns that its result returned into 6 separate outputs with a delimiter
This will help me to display at will any of the 6 columns, because they will have a clear delimiter between each column and a row per result. An array in shot
May I suggest that there are better tools to display graphical tabular information rather than the text screen, such as Microsoft Excel.
You can simply pipe the output of the get-smbconnection cmdlet to export-csv
In the text screen, you can pipe the output to Format-Table with the -AutoSize switch for slightly better display
I forgot to mention that I intend to use that in a script on a script executing tool that will run it on multiple computers and therefore it needs to return the results to the standard output of the console
Another cool way to display structured data produced by a Powershell script is Out-GridView. Therefor you don’t even need any other tool installed. And if needed you can make a choice in this gridview and perform further steps with the chosen data.
I think this is not yet the goal of what I am looking and I think it is due to a misexplaination of myself, so I will try better
The output of my script needs to be in the console, it cannot be in a file. And import it as suggested by Joel is not ideal since I am losing the delimiter needed.
The goal is more to split the columns returned by the cmdlets, in new columns displayed in the console but that have a delimiter.
As my tool will return the results of this script as follow on its UI, I need to be able to give him the information with a delimiter it can take into account, each row will be a different computer and in each column I need to have all the rows the cmdlet returned for each column for the cmdlet answer (like 3 lines in there were 3 smb shares open). Image