Link to home
Start Free TrialLog in
Avatar of Ted Penner
Ted PennerFlag for United States of America

asked on

Broadcast to active directory user, regardless of which computer, using the command line

I need to send a broadcast message to an employee that is in active directory, regardless of which computer they are on.

Assistance is greatly appreciated.
Avatar of Member_2_406981
Member_2_406981

net send USERNAME messagetest

ist not doing the desired result? as far as i remember it should be like this. its long long ago as i used this feature before.
Avatar of Ted Penner

ASKER

syntax not working
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Outstanding!   Is it possible to have them interact with me through that command?
How do I write it to have it send to multiple users?
they can use the same command to answer, just replace the username with your username. If thats enough interaction for you, then yes they can.
To send to multiple users, you have to decide to send to: 1) Everyone on domain. 2) Certain users only.

Certain users: for %%C in (user1 user2 user3) do msg %%C Message

Everyone on domain: for /F "delims=\" %%C in ('net view ^| find "\\"') do msg * /server:%%C /time:30 Hey^!

See Qlemo's solution at https://www.experts-exchange.com/questions/26314939/Windows-7-Net-Send-command-alternative.html?anchorAnswerId=33440032#a33440032
Interesting.  I was doing this to myself but now that I try it with other network users, I get the message "does not exist or is disconnected".  This happens whenever I use the syntax msg username message or msg ipaddress message.
Not certain but I think the user must be logged on?
They are.  That's what is so interesting.
Try
Msg * /SERVER:yourservernamehere "hello everyone!"
What does that do?