With -Countdownseconds 600 -CountdownNoHideSeconds 60 works correctly.
With -NoCountdown no restart prompt ever shows. No error in the logs
With -NoCountdown no restart prompt ever shows. No error in the logs
Hi Craig,Hi Marco,
I'm with you on this one.
It would be great to have a user friendlier approach for processes with a user interface.
I find the -CloseApps naming misleading as it is killing processes using Stop-Process,
Instead you could "gently" ask Excel to exit by sending a close message to its main window:
Get-Process excel -ErrorAction SilentlyContinue | ? { $_.CloseMainWindow() | Out-Null }
Hopefully it can be added to the toolkit in the future.
Regards,
Marco
[int]$WM_QUERYENDSESSION = 0x11
$m = [System.Windows.Forms.Message]
$msg=$m.GetProperty("msg") #returns $null
Even found something here but it wasn't usable (http://psappdeploytoolkit.codeplex.com)/discussions/538137