I'm getting this error message when I am trying to run a remote powershell script. All I'm trying to pass is a simple ps.SendRemoteRequest("Get-ExchangeServer | Format-List") my aspx.vb code:
Imports powershellSession Public Class testPSRemote Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ps As powershellSession = New powershellSession("server", "username", "pass") ps.SendRemoteRequest("Get-ExchangeServer | Format-List") LblpsRemote.Text = ps.resultStr End Sub End Class I get through the "Public Sub New" just fine, but when I hit the SendRemoteRequest Function I'm getting "Nothing" for _pipeLine = _myRunspace.CreatePipeline.

It looks like my "Dim myRunSpace As Runspace = RunspaceFactory.CreateRunspace(connectionInfo)" is not working correctly.

my powe ...

Go to the complete details ...