Is there a way to adjust table length? It seems like my table maxes out at 21 rows then is cut off
Get-UDDashboard | Stop-UDDashboard
$LenelComDashboard = New-UDDashboard -Title “Lenel Communication Server Health” -Content {New-UDSplitPane -Content {
New-UDCard -Title ‘’ -Content {
New-UDTable -Title “Service Status” -Headers @(‘Hostname’, ‘Service Status’) -AutoRefresh -RefreshInterval 5 -Endpoint {
$serverlist = get-content -path C:\temp\Serverlist.csv
foreach ($servername in $serverlist){
Get-Service -ComputerName $servername -Name ‘LS Communication Server’ | ForEach-Object {$BgColor = 'green' $FontColor = 'white' if ($_.Status -ne 'Running') { $BgColor = 'red' $FontColor = 'white' } [PSCustomObject]@{ Name = $servername Status = New-UDElement -Tag 'div' -Attributes @{ style = @{ 'backgroundColor' = $BgColor; color = $fontColor } } -Content { $_.Status.ToString() } } } | Out-UDTableData -Property @("Name", "Status")
}
}
}New-UDCard -Title ‘’ -Content {
New-UDTable -Title “Service Status” -Headers @(‘Hostname’, ‘Service Status’) -AutoRefresh -RefreshInterval 5 -Endpoint {
$serverlist = get-content -path C:\temp\Serverlist2.csv
foreach ($servername in $serverlist){
Get-Service -ComputerName $servername -Name ‘LS Communication Server’ | ForEach-Object {$BgColor = 'green' $FontColor = 'white' if ($_.Status -ne 'Running') { $BgColor = 'red' $FontColor = 'white' } [PSCustomObject]@{ Name = $servername Status = New-UDElement -Tag 'div' -Attributes @{ style = @{ 'backgroundColor' = $BgColor; color = $fontColor } } -Content { $_.Status.ToString() } } } | Out-UDTableData -Property @("Name", "Status")
}
}
}
} -DefaultSize 850}
Start-UDDashboard -Dashboard $LenelComDashboard -Port 8090 -AutoReload
#Get-UDDashboard | Stop-UDDashboard