Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

sending a message to network computer

$
0
0

Hello everyone I'm trying to create a script that will send a message to a network computer LAN . I 'm trying to find a way to be able to write many message in the same powershell session example a reply without opening this powershell script again, here is my script.

$message = read-host -prompt "type your message here"
$computername = Read-Host -Prompt "type a computername"
$session = "*"
msg $session /server:$computername $message

Best

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles