Hi there,
sorry for asking that many questions in the forum! But I still have a problem with New-UDProgress.
In this case, New-UDProgress shows nothing, but New-UDChip shows the values…
what am I doing wrong?
Thanks for help
New-UDGrid -Item -ExtraSmallSize 6 -Content {
New-UDDynamic -Id 'Sync4ServerInfo' -Content {
$Disks = Get-WMIObject -Class Win32_LogicalDisk -Computername "testserver" | Where-Object {$_.DriveType -eq "3"}
New-UDPaper -Content {
foreach($disk in $disks) {
$DiskFreeSpace = ($Disk.FreeSpace /1GB)
$DiskSize = ($Disk.Size / 1GB)
$Percent = [Math]::Round(($DiskFreeSpace / $DiskSize) * 100)
New-UDProgress -PercentComplete $Percent
New-UDChip -Label $Percent
}
} -Elevation 2
}