Please can someone help, for some reason when i run the following code to output values in a hashtable, the output is being grouped, but if i remove the 4th item in the hashtable, the output is in a list format.
I need the output for the 4 items to be in list not grouped.
Nothing at all. By default PowerShell displays objects with 4 or fewer properties as a table, 5 or more in a list. Without doing more advanced stuff, you can just pipe the output of you select-object command to Format-List to get the results you want.
The topic ‘Hashtable driving me mad.’ is closed to new replies.