Open a custom remote powershell remotely
- by Yann
I have 2 computers. On the computer A, I have a custom module written in C# for powershell 3.0 and installed via a MSI. I also have a shortcut that open powershell with the module already loaded.
I can just double click on my shortcut and run my command Do-Something on this computer without any problem, like the Exchange Server powershell.
But now I would like to do it from a remote session on computer B in C#.
So my question is, how can I open a remote powershell session to computer A with my module already loaded and the shell configured so I can just run my command and obtain the same result than if I run it on computer A?