2 Replies Latest reply on Jul 10, 2015 3:06 PM by richard mcleod

    NSH, Nexec and Powershell

    richard mcleod

      Warning: Odd Behavior ahead


      Have a type 2 script which copies a ps1 file to a target machine. The ps1 file name is stored in a variable called SCRIPT


      After we successfully copy the file to the target, we try to execute it, however what we see happening is the $SCRIPT variable is not being expanded inside of nexec. So the target machine is trying to run cmd /c echo.|powershell C:\tmp\$SCRIPT via nexec.


      This script has been used in the past and I don't recall this happening. I converted it to a type one, same behavior.


      Super weird. Anyone else?