besimorhino / powercat

netshell features all in version 2 powershell
Apache License 2.0
2.15k stars 473 forks source link

Two sets of fixes: #3

Closed kjacobsen closed 9 years ago

kjacobsen commented 9 years ago

As discussed in issue: https://github.com/besimorhino/powercat/issues/2

  1. Re added definition of $Encoding in the PowerShell section to prevent -ep client calls from failing. Line 601
  2. Previous only standard out (pipeline) was captured and returned when using -ep, there were no errors captured. EG, if you typed an invalid CMDLet, nothing was returned. Modified IEX call in #Stream2 Read# section, line 648 to capture error, verbose, warnings and debug. also modified the catch to actually to something, it will now return the error message (and thus if you mistype a CMDLet you will see an error).