Modyfikacja outputu powershell

Mikolaj Pydzik
  • Rejestracja: dni
  • Ostatnio: dni
  • Postów: 39
0

Cześć,
Jak modyfikować output w powershell'u z takiego

Kopiuj

Name                      InterfaceDescription                    ifIndex Status       MacAddress             LinkSpeed
----                      --------------------                    ------- ------       ----------             ---------
Ethernet                  Intel(R) Ethernet Connection (2) I218-V       8 Up           D0-50-99-5F-7C-6E         1 Gbps
VMware Network Adapte...8 VMware Virtual Ethernet Adapter for ...      11 Up           00-50-56-C0-00-08       100 Mbps
VMware Network Adapte...1 VMware Virtual Ethernet Adapter for ...       7 Up           00-50-56-C0-00-01       100 Mbps

na taki

Kopiuj
Ethernet                     
VMware Network Adapter VMnet8
VMware Network Adapter VMnet1

Próbowałem już poleceń

Kopiuj
Get-NetAdapter | Format-Table -Property Name
Get-NetAdapter | Format-Table -Property Name | ft -HideTableHeaders
Get-NetAdapter | ft -HideTableHeaders | Format-Table -Property Name | Out-String

Z góry dziękuję.

MS
  • Rejestracja: dni
  • Ostatnio: dni
  • Postów: 328
0
Kopiuj
Get-NetAdapter | Format-Table -Property Name -HideTableHeaders

???

Zarejestruj się i dołącz do największej społeczności programistów w Polsce.

Otrzymaj wsparcie, dziel się wiedzą i rozwijaj swoje umiejętności z najlepszymi.