I cannot find a way to have my message box come to the front of the screen (on top of all other windows). I am launching the script as a Windows Scheduled Task via vbscript (the only way I could find to run the powershell script silently without an additional window coming up like cmd, powershell, etc). However, the message appears to come up BEHIND other windows. I cannot find a way to get the message to the front unless I don’t use a message box and just create a custom form with a message and the “TopMost” command. Thoughts/suggestions?
Sets the YES button as default and right-aligns the text.
According to this article an option “ServiceNotification” should set the MessageBox on top, however it doesn’t work (neither does the “DefaultDesktopOnly” option).
I’d create a message box myself, sorry.