We help IT Professionals succeed at work.

VBScript Msgbox on top of other windows

JohnnyD74
JohnnyD74 asked
on
Hello Folks,

I would like to remotely execute the following script and have it show up on TOP of other windows so users can see it when they come back to their desk after a break. It is a message that notifies users I am done remotely repairing their computer but currently, when I execute it remotely, it shows up under other windows so the users dont notice it. Here is the script:

MsgBox "-ALL WORK ON YOUR COMPUTER HAS BEEN COMPLETED-" & vbCrLf & "" & vbCrLf & "*** Thank You :) ***", vbOKOnly, "DHS Support"

Can this be made to show up on top of other windows when executed?
Comment
Watch Question

Ciprian LozonschiOps Team Office 365/Messaging

Commented:
Hi, You can try Popup method to see if it would work in your case.
http://www.devguru.com/technologies/wsh/quickref/wshshell_popup.html
http://ss64.com/vb/popup.html
Test your restores, not your backups...
Top Expert 2016
Commented:
Give this a try, it might solve your problem.

MsgBox "-ALL WORK ON YOUR COMPUTER HAS BEEN COMPLETED-" & vbCrLf & "" & vbCrLf & "*** Thank You :) ***", vbOKOnly + vbSystemModal, "DHS Support"

Open in new window

~bp

Author

Commented:
Thanks very much, Bill! This was exactly what I was looking for!
Bill PrewTest your restores, not your backups...
Top Expert 2016

Commented:
Great, glad that helped.

~bp