Need Help in Out-GridView command

by Nov 3, 2013

Hi All,

I need assistance in script which will get event log and show using out-GridView. Now my requirement is i need to show the out-gridview for multiple computers in single gridview by using tabs. 

my code is 

foreach($name in ($Remote.Text) ){

Get-EventLog -ComputerName $name -LogName ($Logs.SelectedItem) |

Out-GridView -Title "Selected Logs: $($Logs.SelectedItem)" 

 

Required view:  

This is the required output which i need to get from
out-Gridview. Highlighted in red column need to show the event logs of
individual computer, pc name’s which will be get from user and i have captured
them using variable ($Remote.Text).

""

Thanks in advance