Solved

Need advice for login notification via email

Posted on 2008-10-16
1
211 Views
Last Modified: 2012-05-05
I am looking for advice on how to be notified when someone logs in  or unlocks our servers for any reason.  I want to be notified via text message and email.
0
Comment
Question by:gljelliott
1 Comment
 
LVL 1

Accepted Solution

by:
daravuth earned 50 total points
ID: 22732489
Hi,

I would use a logon script to send mail with an smtp client to your mail server. Here how to do it with blat.exe

To send to text message, you can subscribe to online service as www.lesms.com They allow sending sms by sending text to an email address. In that case you must add extra info in your cmd file like recipient phone number etc... In that case you can TYPE and redirect to blat inside of using echo

blat.exe can be found here and is free: http://www.blat.net/


@echo off

if %COMPUTERNAME% == SERVERTOWATCH (

echo %USERNAME% logged in %COMPUTERNAME% at %DATE% %TIME% | blat -s "login notificaton from %COMPUTERNAME%" -to " recipient1@yourdomain.com,recipient2@yourdomain.com -i sender@anyaddress.com -server yourmailserver

)

Open in new window

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now