Running Remote Powershell scripts from VB.NET

I’ve been writing an XMA that uses powershell to communicate with MSOnline. Because of various connectivity issues I have to run the powershell commands on a server other than the FIM server – that is, I have to use remote powershell. There will be more detail on this XMA in a future post, however today I’m going to write up just the VB.Net to remote powershell bit, because as usual I had to spend a lot of time going through blog posts and forums to supplement the meager information available on MSDN.

Read More