Problem with msg command
Posted on 2015-02-20
Each user on our network is running Windows 7 and might login to a different computer depending on the day and the status of the employee. Supervisors need a script they can run that will allow the to produce a small nag screen in the form of a broadcast message that the user might have to move out of the way before they can work.
The nag screen should allow the supervisor to choose from among her own saved list of employees and send a broadcast message or nag screen to one or more of them forcing them to move it from the center of the screen before they can continue their work.
We are not certain that we have any support from the I.T. department on this and we are not allowed to install software.
Initially, I am thinking to use the msg command which replaces the old netsend command. If I type my username, it displays a message, but if I type someone elses username, I get the message "username does not exist or is disconnected". I get this message even though I know them to be currently active and logged in. I have tested this approach with a number of users and get the same message.
Assistance in scripting a solution in powershell is greatly appreciated.