We are deploying software at the german branch of a large company that Dan probably knows well
Over the last year or so, we have modified the deploy-application.ps1 to our needs, as well as added some useful functions via the AppDeployToolkitExtensions.ps1.
The countdown time for a reboot is set to 8 hours (by demand), so it doesn’t interfere with the normal workday too much. The problem is, that people tend to forget about the reboot, and then try to shutdown manually, which results in the message, that powershell is preventing the system from shutting down
We already had incident tickets because of this, how can I prevent this situation ?
Additional info: we are using SCCM for deployment, so the toolkit is runnung as local system
thank you for the quick reply. I see what you are doing here, but unfortunately in my test it doesn’t work, the form does not appear in the first place, no restart prompt is shown although the logfile says it was invoked…
today I tried the first solution again (in another package), and it actually seems to work ! There’s probably another problem with my first test package, sorry for that.
I tested this successfully on a Windows 8.1 System using SCCM 2012. Maybe now someone else could verify this, please ?
I think the second solution is probably the better one because we only want the normal actions a user might take to close a window to not work. If someone is trying to close the windows from the Task Manager, for example, then we should probably allow that to happen.