Ted Penner
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.
Assistance is greatly appreciated.
ASKER
syntax not working
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Outstanding! Is it possible to have them interact with me through that command?
ASKER
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
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
ASKER
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?
ASKER
They are. That's what is so interesting.
Try
Msg * /SERVER:yourservernamehere "hello everyone!"
What does that do?
Msg * /SERVER:yourservernamehere
What does that do?
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.