Sunday, September 1, 2013

Email notification when someone tries to access your computer

Do you have a  that u don’t want to be accessed by other people? Sometimes it may be necessary that nobody uses   when you are out for coffee break or something else since it contains your personal documents, personal information etc. To sort out this problem you can have email  feature i.e. when someone tries to use your computer, it will automatically email you that someone has used your computer.
Now we will be using the built in windows task scheduler feature available in windows 7:-It can send emails in response to variety of events. Since the built in email feature isn’t quite flexible therefore we will be using another tool called SendEmail.

SENDEMAIL VS TASK SCHEDULER EMAIL FEATURE


The task scheduler includes a send an email option. But unfortunately, this won’t work properly for some users-if u have a SMTS server that requires authentication, the authentication details will have to be same as the windows user account’s details.
Instead, download SendEmail, a free tool for sending emails from the command line. With this software, we can write a single command that will send out an email.

CREATING A TASK


Head over to the  menu and type “Task Scheduler” into the search box and pressing enter, it will launch Windows Task Scheduler.
Opening Task Scheduler
When task scheduler opens up.Look at the right sidebar pane,click the Create Task Link.
Creating a task
On the General Pane, Provide a name and description for the task. You should also select the Run whether user is logged on or not check box at the bottom of the security options
Clicking on General tab
On the Triggers tab, create a new trigger that begins the task at logon for any user.
Opening triggers tab
On the Actions tab, create a new action that runs the sendemail.exe application. Add arguments like the following.
-f from@gmail.com -t to@gmail.com -u Someone Logged Into Your Computer -m Someone just logged into your computer! -s smtp.gmail.com:587 -xu  from@gmail.com -xp password -o tls=yes
Creating an action
The above arguments send an email from from@gmail.com to to@gmail.com.The email’s subject is “Someone Logged Into Your Computer” and its message body is “Someone Just Logged into Your Computer! “The Server information is smtp.gmail.com with port 587 –if you are using different SMTP server provider, u will have to change this. You will also have to change password with your own password
On the condition tab, uncheck Start the task only if the computer is on AC power or you won’t get emails if your computer is a laptop and it’s unplugged
Opening condition tab
Click the OK button and save your task. You should now receive email notifications whenever someone tries to log on into your computer

No comments:

Post a Comment