Open a custom remote powershell remotely
Posted
by
Yann
on Super User
See other posts from Super User
or by Yann
Published on 2012-12-09T04:39:31Z
Indexed on
2012/12/09
17:07 UTC
Read the original article
Hit count: 247
powershell
|c#
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?
© Super User or respective owner