How to trigger a toast message remotely using Powershell

Rabah 0 Reputation points
2023-02-11T20:16:07.5233333+00:00

Hi,

I have created a simple PowerShell script which triggers a toast message and it runs properly when run from PowerShell.

But when run remotely it doesn't work.

remote powershell.png

I can see it in the events that it has run but no toast message gets triggered.

Any ideas?

Thank you

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2023-02-11T22:18:13.1666667+00:00

    You'd have to be running your script using the credentials of the logged-on user for it to work.

    This might help you: https://stackoverflow.com/questions/61971517/powershell-send-a-toast-notification-to-logged-user-when-running-as-local-syste

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.