troubleshooting Question

powershell format result of command

Avatar of bibi92
bibi92Flag for France asked on
Powershell
3 Comments2 Solutions39 ViewsLast Modified:
Hello

I search to format result on the below command :

$NetIPAddresses = (Get-NetIPAddress | where {$_.InterfaceAlias -match "10" -and $_.AddressFamily -eq "IPv4"}
) |  format-table IPAddress, InterfaceAlias -auto

echo $NetIPAddresses

IPAddress     InterfaceAlias
---------     --------------
112.164.60.9  HT-10
10.111.22.59  DT-10
10.111.22.58  DT-10
10.111.22.56  DT-10
10.111.160.90 AD-10

I want to group the result in three columns without column name:


10.111.22.59;10.111.22.58;10.111.22.56,112.164.60.9,10.111.160.90

Thank you

Best regards
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros