Thanks for this updated script. I am planing on inplimenting this in my
latest 10.12 upgrade. Quick question, I have scripts that run before the
OS upgrade, creates a LaunchAgent that's set to use the preloginwindow
so I can run scripts post upgrade ...