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.
Need help for powershell script
jay k
21
Reputation points
Powershell script to verify default computer container in AD and send popup message to all the devices which are located in default computer container
2 answers
Sort by: Oldest
-
-
jay k 21 Reputation points
2022-07-05T13:33:26.413+00:00 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