1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.

How to send a message after user login

Discussion in 'Windows Home Server' started by Alek Luchnikov, Sep 24, 2009.

  1. Hello, All!

    Some times I check login users on terminal server by "query user" command.

    But I want that a message displayed automatically now.

    I writing cmd for myself: query user Demo && net send Alek "Demo Online"

    My cmd doesn't work.



    Is there any idea send message after user login?



    With best regards, Alek Luchnikov.

    =================================================
     
  2. Hi!

    Just wnat to make sure I understand: you want a message to be sent to the
    admin after the user loggs in?

    You can look into msg.exe - this is a command line utility to send mesasges
    to users:
    G:\>msg /?
    Send a message to a user.

    MSG {username | sessionname | sessionid | @filename | *}
    [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]

    username Identifies the specified username.
    sessionname The name of the session.
    sessionid The ID of the session.
    @filename Identifies a file containing a list of usernames,
    sessionnames, and sessionids to send the message to.
    * Send message to all sessions on specified server.
    /SERVER:servername server to contact (default is current).
    /TIME:seconds Time delay to wait for receiver to acknowledge msg.
    /V Display information about actions being performed.
    /W Wait for response from user, useful with /V.
    message Message to send. If none specified, prompts for it
    or reads from stdin.

    Thanks,
    Geanina



    "Alek Luchnikov" wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Hello, All!
    >
    > Some times I check login users on terminal server by "query user" command.
    >
    > But I want that a message displayed automatically now.
    >
    > I writing cmd for myself: query user Demo && net send Alek "Demo Online"
    >
    > My cmd doesn't work.
    >
    >
    >
    > Is there any idea send message after user login?
    >
    >
    >
    > With best regards, Alek Luchnikov.
    >
    > =================================================
    >
    >
    > <!--colorc--><!--/colorc-->
     
  3. RitaPat

    RitaPat Pending

    Joined:
    Dec 21, 2009
    Messages:
    5
    Vista editions other than the Home editions include a new command, MSG.EXE. Type MSG /? in a command prompt to get the syntax. Try sending yourself a message: MSG "username" "BOO!". You can add the /TIME switch to make the message auto-close after a number of seconds. I think you'll find that MSG is a good replacement for NET SEND. And it doesn't even require the other system to be running the Messenger service
    Use a third party LAN messenger maybe a good choice to replace net send command.
    Check out the comparison between net send command line and LAN messenger.
     

Share This Page