10 Replies Latest reply on Jul 17, 2014 3:17 AM by Mike Jones

    NSH Scripting Help Needed

    Jegavelan Sargunan

      Hi Everyone

       

          Need input in implement the below script in NSH , it run good at CMD of windows not the command of NSH

       

      for /f "tokens=2" %%i in ('qwinsta ^| find /i "listen"') do echo y | rwinsta %%i

       

      I tried to run like nexec -e cmd /c "for /f "tokens=2" %i in ('qwinsta ^| find /i "listen"') do echo y | rwinsta %i"

       

      It failing with saying as 2 was unexpected at this time.