General discussion

Locked

NET SEND to user with multiple sessions

By chris.harrison ·
As part of a software development project I am doing a net send to a username.

However I have encountered a problem where the same user has two NT sessions running. The first session receives the net send message but the second doesn't. If they exit the first session the second still doesn't receive the net sends. Apparently this is because of the way that the WINS database works. Ideally I need to determine all of the machines that the user is logged onto and net send to all the machines rather than to a user.

Is there any way of reading the WINS database to get all the machines that a specific user has logged onto?

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

NET SEND to user with multiple sessions

by pumbaa In reply to NET SEND to user with mul ...

As part of a VB project I developed a dll to send messages using API calls, PC's Mailslot and for Non-NT systems WinPopUp to receive the messages, NT systems use the normal pop-up dialog box. The Mailslot does not require additional libraries to be installed as it writes a file to the computer's mailslot, no additional write permissions are required.

I had a similar problem that users used different and multiple systems. I therefore appended to a database the user and the system name they logged on to as part of the program and then when they logged off I removed the record. This meant that however many systems a user was logged onto each one got the message. As it is the system that receives the message not a user account.

When the user logs into the system you can run an applet to perform the logging and when they log off from the system or close down windows the same applet can remove the database entry.

The library also monitors WinPopUp so that if someone closes it down it starts up again (s

Collapse -

NET SEND to user with multiple sessions

by chris.harrison In reply to NET SEND to user with mul ...
Collapse -

NET SEND to user with multiple sessions

by tysonmathews In reply to NET SEND to user with mul ...

C>net send /?
The syntax of this command is:


NET SEND {name | * | /DOMAIN[:name] | /USERS} message
(note context, the end of the context you can type the users to recieve it. Ideally the first name is for a User or PC name and the last partof the contecxt is USERS for the users to recieve it.


C>net send chris.harrison /domain:triad.plc Het this is
The message was successfully sent to domain TRIAD.PLC.


C>net send chris.harrison /domain:triad.plc Of course wi
eck TechNet
The message was successfully sent to domain TRIAD.PLC.

not that it made it to your location or anything, but it did make it to your domain from Redmond, WA

GOOD LUCK

Collapse -

NET SEND to user with multiple sessions

by chris.harrison In reply to NET SEND to user with mul ...
Collapse -

NET SEND to user with multiple sessions

by joeri In reply to NET SEND to user with mul ...

Open your WINS administrator database and look for the username that you want to send the message to. Look at the IP-addresses that are related to tha username.
Then open a Command prompt.
Type: ping -a [ip-address] for each IP-address. In that way you will find the name of every PC where that username is connected on.

Collapse -

NET SEND to user with multiple sessions

by chris.harrison In reply to NET SEND to user with mul ...
Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums