Powershell script to verify default computer container in AD and send popup message to all the devices which are located in default computer container
Powershell script to verify default computer container in AD and send popup message to all the devices which are located in default computer container
Use Get-ADComputer to get the computer information. Use the DOS command "msg /SERVER:target-computer" to send to the computer. There are parameters to the MSG command for how long the message should be displayed, the data you want to display on the computer, and the sessions on the computer that should receive the message.
ok, thanks for the information, I am looking to include both in the powershell script, so that the output of the get-adcomputer can be used to send the message. Any idea would be helpful
You can call DOS commands from a PowerShell scripts.
One thing I would mention is that its possible that the MSG command may be blocked by local firewall policies or other restrictions.
29 people are following this question.