Product: PowerShell Universal
Version: 1.4.6
Not quite sure how to explain this, used UD a couple of years ago and have just got back to it
I am creating a New-UDStepper and in the -onfinish section I want to display progress as each script runs
if(($Session:ApplicationInstallOrUninstall.Action) -eq 'Install')
{
New-UDAlert -severity 'info'-text "Adding $($Session:UserOrDeviceSelected.Device) to Collection "
New-UDAlert -severity 'info'-text "Please wait - this may take a minute or two"
New-UDAlert -severity 'success'-text "Device appears in Collection"
New-UDAlert -severity 'info'-text "Initiating Computer Policy update to Device"
New-UDAlert -severity 'success'-text "Initiated - If the device is online, the Application it should start installing in 5 minutes"
New-UDAlert -severity 'info'-text "Check Software Center on Device "
}
As an example if I put say start-sleep 5 between each New-UDAlert
if(($Session:ApplicationInstallOrUninstall.Action) -eq 'Install')
{
New-UDAlert -severity 'info'-text "Adding $($Session:UserOrDeviceSelected.Device) to Collection "
Start-Sleep 5
New-UDAlert -severity 'info'-text "Please wait - this may take a minute or two"
Start-Sleep 5
New-UDAlert -severity 'success'-text "Device appears in Collection"
Start-Sleep 5
New-UDAlert -severity 'info'-text "Initiating Computer Policy update to Device"
Start-Sleep 5
New-UDAlert -severity 'success'-text "Initiated - If the device is online, the Application it should start installing in 5 minutes"
Start-Sleep 5
New-UDAlert -severity 'info'-text "Check Software Center on Device "
}
, the end result is a page taking 30 seconds longer to load, when what I want is for each New-UDAlert to appear on the page every 5 seconds