I am trying to display a message using New-UDToast when user connects to a server.
Test-Connection -ComputerName $servername -Quiet -Count 1
If $true it will broadcast a message “Successfully connected”. If $false “connection failed”.
When I tried to use in on 2 computers one have a valid server and other have an invalid server.
I clicked the button to on both computers simultaneously both computers got both message, one is “Successfully connected” and the other “connection failed”.
Is there a way to just show the New-UDToast to a specific user?
Hello @RATG I reported this as a bug a little while back…I think it was something to do with using an -endpoint within the modal, once I removed that problem went away…let me see if I can find the official bug link…
Looks like this was fixed in the latest build…can you please state version you are using and if it is professional or communty edition. Thanks
Below is a sample code that I simultaneously run on separate machines.
One would machine would have values on the other would have no values entered.
Both machine would see the message.
What is the best way to code this so that the message will only be visible on a specific session/user?