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.
=================================================
Page 1 of 1
How to send a message after user login
#2 Geanina[MSFT]
Posted 19 Oct 2009 - 07:09 PM
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.
>
> =================================================
>
>
>
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.
>
> =================================================
>
>
>
#3
Posted 21 Dec 2009 - 02:38 AM
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.
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 topic:
Page 1 of 1

Help











