Send a mail when new users log in to the machine

Posted on 2007-07-23
Last Modified: 2010-03-05

Is there any way i can get a mail when a user is logged in to a machine.

Question by:bsharath
    LVL 3

    Expert Comment

    That could be a lot of mail!  I wrote a login script that logs to an Access database some of the data correlated with a user login.  If you're using Active Directory, your domain controller's security event log will show you logins/outs.
    LVL 11

    Author Comment

    Yes i have a DC but i want to do this only for 4 servers.Is there a way to trigger a mail at logon.Or a pop on my machine when there is a login.
    LVL 3

    Expert Comment

    I guess you could use a login script to do a net send, provided it's not blocked.  It's not blocked on win 2000, but it is on XP, I think.  I'm not sure about email.  That'd be more involved for sure.  Have to connect to outlook on the local machine using vbscript, I would think.
    LVL 3

    Expert Comment

    Also, have a look at this thread in regards to messenger service:
    LVL 23

    Accepted Solution

    in the login script you can use bmail to send an email .You need to download this command line tool and copy it the windows folder on your DC

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
    The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now