Simple way to run a powershell script against all open sessions?
I'm looking for a simple way to run an incredibly simple script against all my open sessions.
Start-Process "msedge.exe" "https://www.example.com"
If I right click the folder I get the option to "Execute script vie RDP Jump" which doesn't seem to be right as I have to install something on every server to do that.
I have also tried setting it up as a "PowerShell Script (remote)" and running it against the folder but that opened PowerShell on my local machine (once for each session) and gave me a tonne of connection errors and also wanted software installed on the server.
Is there a simple way of running a script from a window within RDM against all open sessions?
Hello Jonh,
The most straightforward way to start a process when you connect to a server is to use the Event feature in RDM.
This feature is under the entry properties -> Events -> After open.
You can select multiple ways to interact with the opening of your sessions.

Let me know if this helps.
Best regards,
Patrick Ouimet