I made the skeleton of the GUI and all looks great and now I just have to get some code in. I have a multiline text box where users can type in multiple computer names and a Run box. I have the output going to a GridView using the Out-GridView cmdlet.
For testing purposes, I am just running test-connection to see if the output looks ok and it does when I enter one computer, BUT, when I enter multiple computers it sees it as one big computer name and it errors out saying that “Test1ComputerTest2ComputerTest3Computer is offline”.
How do I get PowerShell Studio to see each computer on each line as a separate computer in a multiline text box without it seeing it all as one string?