Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Have script get my attention and stay open

$
0
0

As part of my job duties, I need to wait for several PC's to be online and when they are, connect and do something to them.  So, instead of manually periodically checking to see if they are online, I am working on a script that will do the checking.  I plan on having the script run with task scheduler so am trying to figure out how best to have the script get my attention if a system is online.  On top of that, I am trying to figure out if there is a way to have the script exit if no systems were online but stay open if there is one online. 

What have I tried/looked at so far:
Balloon notification, issue with this is if I am not at my desk or just not seeing it, I can miss the balloon.  If there was a way to keep the balloon up until clicked, than that would work.

Play a sound, when I am in the office I listen to music (open workspace so gets quite noisy) and have head phones in so probably wouldn't hear it.

Msgbox Box (similar to vbscript),I have used this in a couple scripts but my issue is that it pops behind and I haven't found an easy way to bring the window to the front.

No exit part - I only started looking into this and outside of the -noexit switch, I don't know how to prevent the window from closing while letting it close in some instances.


Viewing all articles
Browse latest Browse all 6937

Trending Articles