Discussion Locked

messaging with "Net send" help

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a network of 52 computers broken into four subgroups. Each subgroup uses one login name with an autologin. One group of 5 computers is "booking" etc. I would like to send a one way message to each subgroup of logins. I tried "net send" but itfinds the first occurence of the login and pops the message on that login screen ignoring the rest of the computers. I am thinking that I will have to create unque logins for the 52 machines but I would like to keep it simpler than this. And not useanother piece of software that wil require support.

We are running all machines on Windows 2000/ with a Win 2000 server.

Any ideas?

6 replies

by sallowsg

I had tried net send /domain:booking but it finds the first occurence of the login and pops the message on that login screen ignoring the rest of the computers

by acattr

You can use an easy script below to do what you need.

create text files that list the computers or users you want to send messages to.

Example. booking.txt will contain
************************
PCbooking01
PCbooking02
PCbooking03
************************

Then create a file called message.bat with the text below. Note: when I post this message it may cut one line of text into two, so read it carefully.

************************

@echo off

if {%1}=={} (echo usage: message "text" pc-list.txt) & (goto :EOF)

if {%2}=={} (echo usage: message "text" pc-list.txt) & (goto :EOF)

if not exist %2 (echo %2 not found) & (goto :EOF)

for /f "eol=; Tokens=*" %%i in (%2) do net send %%i %1

:EOF

*************************

To send a messsage use the format below:

Message.bat "message text to send" "c:\Folder\booking.txt"

where c:\Folder\booking.txt contains the list of computers/users.

by sallowsg

Thanks I looked at Nethail but didn't want anymore software running on the workstations. I wanted to keep it as simple as possible with preset messages only no free typing.

I went and created unique autologins logins for each computer and will use your suggestion for the batch file that I will have to create.

but still didn't solve the orginal problem.

Thanks

Gary

This discussion is closed to new replies.