PowerShell Format Output View

This tutorial will provide you information different PowerShell format output view. There are four main cmdlets that allow you to change the view of the output in Powershell. These format cmdlets will help you to show the information in a readable way. Below is the list of these format cmdlets:

Format-List

Format-Table

Format-Wide

Format-Custom

Each of the Format-* cmdlets have a different function, as well as their own set of display options, in order to adjust the output display to your needs. We will go though each cmdlet to see what is able to do. We will check the options of each format cmdlet and how they react to our output. Format cmdlets have specific defaults optimised for their display type, although these can be overridden as needed by specifying particular parameters. As an example of data we will use an object that we will create, containing multiple items, and each item having multiple properties. In order to create my data values, I have used the below command:

$Network = Get-CimInstance -Class Win32_NetworkAdapter

The above command will get the information from the network adapters on my PC and will save them in a variable called $Network . I will used this variable to change the view of my output in order to read the information easier. Please note the there are some options that you can use for each of the Format cmdlets. The default output for the above if I call the variable is the below:

Output:

Format-Wide

Format-Wide will display the information as wide as the screen is. This format is able to display only one property. The default property is the name except if you specify a different one.

Options:

Property

AutoSize

Column

GroupBy

Let see the differences in the output view by using Format-Wide with different options.

$Network | Format-Wide

Output:

$Network | Format-Wide -AutoSize

Output:

$Network | Format-Wide -Column 3

Output:

$Network | Format-Wide -Property ServiceName

Output:

$Network | Format-Wide -Property ServiceName

Output:

Format-List

As the name describes, the output will be formatted in a list format. There are also some options that you can use to define your output. The -Property option in Format-List can accept multiple properties instead of one in Format-Wide . Below is the list of options that I am using in the examples:

Options:

Property

GroupBy

Lets see the differences in output view using Format-List with different options:

$Network | Format-List

Output:

$Network | Format-List -Property *

Output (expand to view):

PS S:\> $Network | Format-List -Property * Availability : 3 Name : Realtek PCIe GBE Family Controller Status : StatusInfo : DeviceID : 0 Caption : [00000000] Realtek PCIe GBE Family Controller Description : Realtek PCIe GBE Family Controller InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : PCI\VEN_10EC&DEV_8168&SUBSYS_2ABF103C&REV_06\4&700D41F&0&00E5 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 1000000000 AdapterType : Ethernet 802.3 AdapterTypeId : 0 GUID : {6D962000-CBD9-4A53-8829-9C3441FECFE1} Index : 0 Installed : True InterfaceIndex : 3 MACAddress : 74:46:A0:B3:7E:AB Manufacturer : Realtek MaxNumberControlled : 0 NetConnectionID : Ethernet NetConnectionStatus : 2 NetEnabled : True PhysicalAdapter : True ProductName : Realtek PCIe GBE Family Controller ServiceName : RTL8168 TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Availability : 3 Name : Microsoft Kernel Debug Network Adapter Status : StatusInfo : DeviceID : 1 Caption : [00000001] Microsoft Kernel Debug Network Adapter Description : Microsoft Kernel Debug Network Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : ROOT\KDNIC\0000 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : AdapterType : AdapterTypeId : GUID : Index : 1 Installed : True InterfaceIndex : 2 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft Kernel Debug Network Adapter ServiceName : kdnic TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Availability : 3 Name : VMware Virtual Ethernet Adapter for VMnet1 Status : StatusInfo : DeviceID : 2 Caption : [00000002] VMware Virtual Ethernet Adapter for VMnet1 Description : VMware Virtual Ethernet Adapter for VMnet1 InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : ROOT\VMWARE\0000 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000000 AdapterType : Ethernet 802.3 AdapterTypeId : 0 GUID : {B5F95BDF-BDA7-4394-B2AB-BDBC69C2783A} Index : 2 Installed : True InterfaceIndex : 7 MACAddress : 00:50:56:C0:00:01 Manufacturer : VMware, Inc. MaxNumberControlled : 0 NetConnectionID : VMware Network Adapter VMnet1 NetConnectionStatus : 2 NetEnabled : True PhysicalAdapter : True ProductName : VMware Virtual Ethernet Adapter for VMnet1 ServiceName : VMnetAdapter TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Availability : 3 Name : Microsoft ISATAP Adapter #2 Status : StatusInfo : DeviceID : 3 Caption : [00000003] Microsoft ISATAP Adapter Description : Microsoft ISATAP Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : SWD\IP_TUNNEL_VBUS\ISATAP_1 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000 AdapterType : Tunnel AdapterTypeId : 15 GUID : Index : 3 Installed : True InterfaceIndex : 4 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft ISATAP Adapter ServiceName : tunnel TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Availability : 3 Name : VMware Virtual Ethernet Adapter for VMnet8 Status : StatusInfo : DeviceID : 4 Caption : [00000004] VMware Virtual Ethernet Adapter for VMnet8 Description : VMware Virtual Ethernet Adapter for VMnet8 InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : ROOT\VMWARE\0001 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000000 AdapterType : Ethernet 802.3 AdapterTypeId : 0 GUID : {CE26701A-B23A-41FB-9F85-CB48423E190A} Index : 4 Installed : True InterfaceIndex : 8 MACAddress : 00:50:56:C0:00:08 Manufacturer : VMware, Inc. MaxNumberControlled : 0 NetConnectionID : VMware Network Adapter VMnet8 NetConnectionStatus : 2 NetEnabled : True PhysicalAdapter : True ProductName : VMware Virtual Ethernet Adapter for VMnet8 ServiceName : VMnetAdapter TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Availability : 3 Name : Microsoft ISATAP Adapter #3 Status : StatusInfo : DeviceID : 5 Caption : [00000005] Microsoft ISATAP Adapter Description : Microsoft ISATAP Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : SWD\IP_TUNNEL_VBUS\ISATAP_2 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000 AdapterType : Tunnel AdapterTypeId : 15 GUID : Index : 5 Installed : True InterfaceIndex : 5 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft ISATAP Adapter ServiceName : tunnel TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Availability : 3 Name : Microsoft ISATAP Adapter #4 Status : StatusInfo : DeviceID : 7 Caption : [00000007] Microsoft ISATAP Adapter Description : Microsoft ISATAP Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : SWD\IP_TUNNEL_VBUS\ISATAP_3 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000 AdapterType : Tunnel AdapterTypeId : 15 GUID : Index : 7 Installed : True InterfaceIndex : 6 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft ISATAP Adapter ServiceName : tunnel TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties PS S:\>

$Network | Format-List -Property Name,AdapterType,ServiceName

Output:

$Network | Format-List -GroupBy AdapterType

Output (expand to view):

PS S:\> $Network | Format-List -GroupBy AdapterType AdapterType: Ethernet 802.3 ServiceName : RTL8168 MACAddress : 74:46:A0:B3:7E:AB AdapterType : Ethernet 802.3 DeviceID : 0 Name : Realtek PCIe GBE Family Controller NetworkAddresses : Speed : 1000000000 AdapterType: ServiceName : kdnic MACAddress : AdapterType : DeviceID : 1 Name : Microsoft Kernel Debug Network Adapter NetworkAddresses : Speed : AdapterType: Ethernet 802.3 ServiceName : VMnetAdapter MACAddress : 00:50:56:C0:00:01 AdapterType : Ethernet 802.3 DeviceID : 2 Name : VMware Virtual Ethernet Adapter for VMnet1 NetworkAddresses : Speed : 100000000 AdapterType: Tunnel ServiceName : tunnel MACAddress : AdapterType : Tunnel DeviceID : 3 Name : Microsoft ISATAP Adapter #2 NetworkAddresses : Speed : 100000 AdapterType: Ethernet 802.3 ServiceName : VMnetAdapter MACAddress : 00:50:56:C0:00:08 AdapterType : Ethernet 802.3 DeviceID : 4 Name : VMware Virtual Ethernet Adapter for VMnet8 NetworkAddresses : Speed : 100000000 AdapterType: Tunnel ServiceName : tunnel MACAddress : AdapterType : Tunnel DeviceID : 5 Name : Microsoft ISATAP Adapter #3 NetworkAddresses : Speed : 100000 ServiceName : tunnel MACAddress : AdapterType : Tunnel DeviceID : 7 Name : Microsoft ISATAP Adapter #4 NetworkAddresses : Speed : 100000 PS S:\>

$Network | Format-List -GroupBy AdapterType -Property *

Output (expand to view):

PS S:\> $Network | Format-List -GroupBy AdapterType -Property * AdapterType: Ethernet 802.3 Availability : 3 Name : Realtek PCIe GBE Family Controller Status : StatusInfo : DeviceID : 0 Caption : [00000000] Realtek PCIe GBE Family Controller Description : Realtek PCIe GBE Family Controller InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : PCI\VEN_10EC&DEV_8168&SUBSYS_2ABF103C&REV_06\4&700D41F&0&00E5 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 1000000000 AdapterType : Ethernet 802.3 AdapterTypeId : 0 GUID : {6D962000-CBD9-4A53-8829-9C3441FECFE1} Index : 0 Installed : True InterfaceIndex : 3 MACAddress : 74:46:A0:B3:7E:AB Manufacturer : Realtek MaxNumberControlled : 0 NetConnectionID : Ethernet NetConnectionStatus : 2 NetEnabled : True PhysicalAdapter : True ProductName : Realtek PCIe GBE Family Controller ServiceName : RTL8168 TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties AdapterType: Availability : 3 Name : Microsoft Kernel Debug Network Adapter Status : StatusInfo : DeviceID : 1 Caption : [00000001] Microsoft Kernel Debug Network Adapter Description : Microsoft Kernel Debug Network Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : ROOT\KDNIC\0000 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : AdapterType : AdapterTypeId : GUID : Index : 1 Installed : True InterfaceIndex : 2 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft Kernel Debug Network Adapter ServiceName : kdnic TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties AdapterType: Ethernet 802.3 Availability : 3 Name : VMware Virtual Ethernet Adapter for VMnet1 Status : StatusInfo : DeviceID : 2 Caption : [00000002] VMware Virtual Ethernet Adapter for VMnet1 Description : VMware Virtual Ethernet Adapter for VMnet1 InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : ROOT\VMWARE\0000 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000000 AdapterType : Ethernet 802.3 AdapterTypeId : 0 GUID : {B5F95BDF-BDA7-4394-B2AB-BDBC69C2783A} Index : 2 Installed : True InterfaceIndex : 7 MACAddress : 00:50:56:C0:00:01 Manufacturer : VMware, Inc. MaxNumberControlled : 0 NetConnectionID : VMware Network Adapter VMnet1 NetConnectionStatus : 2 NetEnabled : True PhysicalAdapter : True ProductName : VMware Virtual Ethernet Adapter for VMnet1 ServiceName : VMnetAdapter TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties AdapterType: Tunnel Availability : 3 Name : Microsoft ISATAP Adapter #2 Status : StatusInfo : DeviceID : 3 Caption : [00000003] Microsoft ISATAP Adapter Description : Microsoft ISATAP Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : SWD\IP_TUNNEL_VBUS\ISATAP_1 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000 AdapterType : Tunnel AdapterTypeId : 15 GUID : Index : 3 Installed : True InterfaceIndex : 4 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft ISATAP Adapter ServiceName : tunnel TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties AdapterType: Ethernet 802.3 Availability : 3 Name : VMware Virtual Ethernet Adapter for VMnet8 Status : StatusInfo : DeviceID : 4 Caption : [00000004] VMware Virtual Ethernet Adapter for VMnet8 Description : VMware Virtual Ethernet Adapter for VMnet8 InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : ROOT\VMWARE\0001 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000000 AdapterType : Ethernet 802.3 AdapterTypeId : 0 GUID : {CE26701A-B23A-41FB-9F85-CB48423E190A} Index : 4 Installed : True InterfaceIndex : 8 MACAddress : 00:50:56:C0:00:08 Manufacturer : VMware, Inc. MaxNumberControlled : 0 NetConnectionID : VMware Network Adapter VMnet8 NetConnectionStatus : 2 NetEnabled : True PhysicalAdapter : True ProductName : VMware Virtual Ethernet Adapter for VMnet8 ServiceName : VMnetAdapter TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties AdapterType: Tunnel Availability : 3 Name : Microsoft ISATAP Adapter #3 Status : StatusInfo : DeviceID : 5 Caption : [00000005] Microsoft ISATAP Adapter Description : Microsoft ISATAP Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : SWD\IP_TUNNEL_VBUS\ISATAP_2 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000 AdapterType : Tunnel AdapterTypeId : 15 GUID : Index : 5 Installed : True InterfaceIndex : 5 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft ISATAP Adapter ServiceName : tunnel TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Availability : 3 Name : Microsoft ISATAP Adapter #4 Status : StatusInfo : DeviceID : 7 Caption : [00000007] Microsoft ISATAP Adapter Description : Microsoft ISATAP Adapter InstallDate : ConfigManagerErrorCode : 0 ConfigManagerUserConfig : False CreationClassName : Win32_NetworkAdapter ErrorCleared : ErrorDescription : LastErrorCode : PNPDeviceID : SWD\IP_TUNNEL_VBUS\ISATAP_3 PowerManagementCapabilities : PowerManagementSupported : False SystemCreationClassName : Win32_ComputerSystem SystemName : PC-NAME AutoSense : MaxSpeed : NetworkAddresses : PermanentAddress : Speed : 100000 AdapterType : Tunnel AdapterTypeId : 15 GUID : Index : 7 Installed : True InterfaceIndex : 6 MACAddress : Manufacturer : Microsoft MaxNumberControlled : 0 NetConnectionID : NetConnectionStatus : NetEnabled : PhysicalAdapter : False ProductName : Microsoft ISATAP Adapter ServiceName : tunnel TimeOfLastReset : 26/04/2018 15:47:55 PSComputerName : CimClass : root/cimv2:Win32_NetworkAdapter CimInstanceProperties : {Caption, Description, InstallDate, Name...} CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties PS S:\>

Format-Table

Format-Table will give us the output in table view as the name describes again. In this format, there are also options that you can further define your output. Like Format-List, -Property option can access multiple values. Below is the list of options that I am using in the examples:

Options:

Autosize

HideTableHeaders

Wrap

Property

GroupBy

Lets see the differences in output view using Format-Table with different options:

$Network | Format-Table

Output:

$Network | Format-Table -HideTableHeaders

Output:

$Network | Format-Table -Wrap

Output:

$Network | Format-Table -AutoSize

Output:

$Network | Format-Table -Wrap -AutoSize

Output:

$Network | Format-Table -Property Name,AdapterType,ServiceName

Output:

$Network | Format-Table -Property *

Output:

$Network | Format-Table -Property * -Wrap

Output (expand to view):

PS S:\> $Network | Format-Table -Property * -Wrap Avail Name Statu Statu Devic Capti Descr Insta Confi Confi Creat Error Error LastE PNPDe Power Power Syste Syste AutoS MaxSp Netwo Perma Speed Adapt Adapt GUID Index Insta Inter MACAd Manuf MaxNu NetCo NetCo NetEn Physi Produ Serv Time PSCo CimC CimI CimS abili s sInfo eID on iptio llDat gMana gMana ionCl Clear Descr rrorC viceI Manag Manag mCrea mName ense eed rkAdd nentA erTyp erTyp lled faceI dress actur mberC nnect nnect abled calAd ctNam iceN OfLa mput lass nsta yste ty n e gerEr gerUs assNa ed iptio ode D ement ement tionC resse ddres e eId ndex er ontro ionID ionSt apter e ame stRe erNa nceP mPro rorCo erCon me n Capab Suppo lassN s s lled atus set me rope pert de fig iliti rted ame rtie ies es s ----- ---- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ---- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ---- ---- ---- ---- ---- ---- 3 Realt 0 [0000 Realt 0 False Win32 PCI\V False Win32 PC-NA 10000 Ether 0 {6D96 0 True 3 74:46 Realt 0 Ether 2 True True Realt RTL8 26/0 root {Cap Micr ek 0000] ek _Netw EN_10 _Comp ME 00000 net 2000- :A0:B ek net ek 168 4/20 /cim tion osof PCIe Real PCIe orkAd EC&DE uterS 802.3 CBD9- 3:7E: PCIe 18 1 v2:W , De t.Ma GBE F tek GBE F apter V_816 ystem 4A53- AB GBE F 5:47 in32 scri nage amily PCIe amily 8&SUB 8829- amily :55 _Net ptio ment Cont GBE F Cont SYS_2 9C344 Cont work n, I .Inf rolle amily rolle ABF10 1FECF rolle Adap nsta rast r Cont r 3C&RE E1} r ter llDa ruct rolle V_06\ te, ure. r 4&700 Name CimS D41F& ...} yste 0&00E mPro 5 pert ies 3 Micro 1 [0000 Micro 0 False Win32 ROOT\ False Win32 PC-NA 1 True 2 Micro 0 False Micro kdni 26/0 root {Cap Micr soft 0001] soft _Netw KDNIC _Comp ME soft soft c 4/20 /cim tion osof Kerne Micr Kerne orkAd \0000 uterS Kerne 18 1 v2:W , De t.Ma l Deb osoft l Deb apter ystem l Deb 5:47 in32 scri nage ug Ne Kern ug Ne ug Ne :55 _Net ptio ment twork el De twork twork work n, I .Inf Adap bug N Adap Adap Adap nsta rast ter etwor ter ter ter llDa ruct k Ada te, ure. pter Name CimS ...} yste mPro pert ies 3 VMwar 2 [0000 VMwar 0 False Win32 ROOT\ False Win32 PC-NA 10000 Ether 0 {B5F9 2 True 7 00:50 VMwar 0 VMwar 2 True True VMwar VMne 26/0 root {Cap Micr e Vir 0002] e Vir _Netw VMWAR _Comp ME 0000 net 5BDF- :56:C e, e Net e Vir tAda 4/20 /cim tion osof tual VMwa tual orkAd E\000 uterS 802.3 BDA7- 0:00: Inc. work tual pter 18 1 v2:W , De t.Ma Ether re Vi Ether apter 0 ystem 4394- 01 Adapt Ether 5:47 in32 scri nage net A rtual net A B2AB- er VM net A :55 _Net ptio ment dapte Ethe dapte BDBC6 net1 dapte work n, I .Inf r rnet r 9C278 r Adap nsta rast for V Adapt for V 3A} for V ter llDa ruct Mnet1 er Mnet1 Mnet1 te, ure. for V Name CimS Mnet1 ...} yste mPro pert ies 3 Micro 3 [0000 Micro 0 False Win32 SWD\I False Win32 PC-NA 10000 Tunne 15 3 True 4 Micro 0 False Micro tunn 26/0 root {Cap Micr soft 0003] soft _Netw P_TUN _Comp ME 0 l soft soft el 4/20 /cim tion osof ISATA Micr ISATA orkAd NEL_V uterS ISATA 18 1 v2:W , De t.Ma P Ada osoft P Ada apter BUS\I ystem P Ada 5:47 in32 scri nage pter ISAT pter SATAP pter :55 _Net ptio ment #2 AP Ad _1 work n, I .Inf apter Adap nsta rast ter llDa ruct te, ure. Name CimS ...} yste mPro pert ies 3 VMwar 4 [0000 VMwar 0 False Win32 ROOT\ False Win32 PC-NA 10000 Ether 0 {CE26 4 True 8 00:50 VMwar 0 VMwar 2 True True VMwar VMne 26/0 root {Cap Micr e Vir 0004] e Vir _Netw VMWAR _Comp ME 0000 net 701A- :56:C e, e Net e Vir tAda 4/20 /cim tion osof tual VMwa tual orkAd E\000 uterS 802.3 B23A- 0:00: Inc. work tual pter 18 1 v2:W , De t.Ma Ether re Vi Ether apter 1 ystem 41FB- 08 Adapt Ether 5:47 in32 scri nage net A rtual net A 9F85- er VM net A :55 _Net ptio ment dapte Ethe dapte CB484 net8 dapte work n, I .Inf r rnet r 23E19 r Adap nsta rast for V Adapt for V 0A} for V ter llDa ruct Mnet8 er Mnet8 Mnet8 te, ure. for V Name CimS Mnet8 ...} yste mPro pert ies 3 Micro 5 [0000 Micro 0 False Win32 SWD\I False Win32 PC-NA 10000 Tunne 15 5 True 5 Micro 0 False Micro tunn 26/0 root {Cap Micr soft 0005] soft _Netw P_TUN _Comp ME 0 l soft soft el 4/20 /cim tion osof ISATA Micr ISATA orkAd NEL_V uterS ISATA 18 1 v2:W , De t.Ma P Ada osoft P Ada apter BUS\I ystem P Ada 5:47 in32 scri nage pter ISAT pter SATAP pter :55 _Net ptio ment #3 AP Ad _2 work n, I .Inf apter Adap nsta rast ter llDa ruct te, ure. Name CimS ...} yste mPro pert ies 3 Micro 7 [0000 Micro 0 False Win32 SWD\I False Win32 PC-NA 10000 Tunne 15 7 True 6 Micro 0 False Micro tunn 26/0 root {Cap Micr soft 0007] soft _Netw P_TUN _Comp ME 0 l soft soft el 4/20 /cim tion osof ISATA Micr ISATA orkAd NEL_V uterS ISATA 18 1 v2:W , De t.Ma P Ada osoft P Ada apter BUS\I ystem P Ada 5:47 in32 scri nage pter ISAT pter SATAP pter :55 _Net ptio ment #4 AP Ad _3 work n, I .Inf apter Adap nsta rast ter llDa ruct te, ure. Name CimS ...} yste mPro pert ies PS S:\>

Format-Custom

By using the type of formatting will allow you to format the output as you wish, either based PS1XML files from Windows PowerShell directory or by creating your own. I will not go in depth for the specific formatting. Below is the exact description provided by Microsoft.

The Format-Custom cmdlet formats the output of a command as defined in an alternate view. Format-Custom is designed to display views that are not just tables or just lists. You can use the views defined in the *format.PS1XML files in the Windows PowerShell directory, or you can create your own views in new PS1XML files and use the Update-FormatData cmdlet to add them to Windows PowerShell.

Related Links: