Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Software or Script to receive alerts about PC shutdowns/reboots

Posted on 2009-07-07
3
Medium Priority
?
317 Views
Last Modified: 2013-11-10
Hi All,
Does anyone know of any free software out there that can alert me when a PC is shutdown or rebooted?
Alternatively, can this be accomplished using a VB Script or similar?
If you suggest scripting, please be clear in your solution as I am a novice at scripting.

I had a look at Spiceworks, which I really liked but the email feature to send alerts won't work because SMTP has been disabled in McAfee by our Corporate Security. I don't think I should risk trying to enable it.

So, let me know if you have any ideas. Thanks in advance.
0
Comment
Question by:MIKOAKE
2 Comments
 
LVL 10

Accepted Solution

by:
Kieran_Burns earned 1000 total points
ID: 24795130
You can use a simple recursive ping command and then blat (http://www.blat.net/) to send an email when it fails. If you sleep.exe for pasue for say 1 minute between loops you won't be sat there pinging all the time
:ping
sleep 10
ping <servername> -n 1
if errorlevel=0 goto ping
blat <send email>
goto ping
 
If you need the exact syntax just reply, but all the freebies you need are all available
0
 
LVL 6

Assisted Solution

by:Asif Bacchus
Asif Bacchus earned 1000 total points
ID: 24888075
hmmm... I like the Blat solution, never seen that before.  A solution may be to put the blat command into a shutdown script on the machine.  You could write a simple batch file to activate blat or if you are in a networked environment, simply send a quick NET SEND message.  You can access shut down scripts via group policy Computer Configuration > Windows Settings > Scripts (Startup/Shutdown) and then edit the shutdown script.  That way, the script will autorun as the system is shutting down.  This is a great way to run any other shut down tasks you might want to as well.

Hope this helps!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question