Powershell Runspace Enter-PSSession

Question:

I am writing a program that will run a program on a remote machine.
I have installed the windows sdk and have successfully uploaded my file with bits
now I would like to remotely run a change directory and execute a command using
power shell.

The program compiles and runs but in the answer variable it says: “The method or operation is not implemented.\r\n”

I tried to use another command in the pipeline but it fails also but with no error output.

Answer:

This line fixed it.

Source:

Powershell Runspace Enter-PSSession by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply