Jump to content

Recommended Posts

Guest Alek Luchnikov
Posted

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.

 

=================================================

  • 4 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Guest Geanina[MSFT]
Posted

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:

> 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 months later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...