Problem seems to be in function Show-WelcomePrompt, line 4789:
## If deferral is being shown and 'close apps countdown' or 'persist prompt' was specified, enable those features.
If ($showDefer) {
If ($closeAppsCountdown -gt 0) {
Write-Log -Message "Close applications countdown has [$closeAppsCountdown] seconds remaining." -Source ${CmdletName}
$showCountdown = $true
}
If ($persistPrompt) { $persistWindow = $true }
}
This should be "if deferral is NOT being shown" and separate from $persistPrompt I think. I changed it to: If (!($showDefer)) {
If ($closeAppsCountdown -gt 0) {
Write-Log -Message "Close applications countdown has [$closeAppsCountdown] seconds remaining." -Source ${CmdletName}
$showCountdown = $true
}
}
If ($showDefer) {
If ($persistPrompt) { $persistWindow = $true }
}
and that seems to be behaving