Once again, the main reason for doing this in the first place was Onevinn’s TSBackground. Talked with Johan about it and I believe he thought it was a good idea since TSBackground now have a similar function.
Any references to TSBackground found in the scripts are just remains from the tests.
In the WinPE phase reboots are pretty easy to predict, in the Full OS phase that isn’t always the case.
The Issues:
1. Start something interactively as SYSTEM on each boot after “Setup Windows and ConfigMgr”.
2. Identify all the places where a reboot may or may not happen.
A possible solution:
Create a scheduled task that runs on system start, since then you don’t need to predict the reboots, and make it break out of the session 0 isolation.
That is what I’m doing. On top of that the script also evaluates if “provisioning mode” is set to false and if the console user <> “System”. If any of these are true, the task will be deleted and the same goes for the script itself. Just to minimize the risk of a privilege escalation.
This however makes it incompatible with a pure MDT OSD, since that runs in the administrator context. Should be easy enough to adapt though, if you want to.
https://github.com/MattiasC85/Start-interactive
Comentarios