split and trim a comma separated string using powershell

Today I saw three different ways of splitting a comma separated string and trimming the items using PowerShell. All of them worked. I decided to put these together for future reference.

Here are all these ways…

Referenced from Technet

Leave a Reply