exchsvr
asked on
Powershell - Send popup message to single user on remote machine
I found a powershell script that will send a popup message to a remote machine, but I would like to be able to limit it to a specific user on that TS. How can i modify the following script to send it to a specific user on that server?
$name = read-host "Enter computer name"
$msg = read-host "Enter your message"
Invoke-WmiMethod -Path Win32_Process -Name Create -ArgumentList "msg * $msg" -ComputerName $name
$name = read-host "Enter computer name"
$msg = read-host "Enter your message"
Invoke-WmiMethod -Path Win32_Process -Name Create -ArgumentList "msg * $msg" -ComputerName $name
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, this is exactly what is needed. The rdusersession option required the remote desktop module to be installed so we couldn't use that.
Thanks!
Thanks!
Open in new window