2 Replies Latest reply on Mar 17, 2015 1:28 AM by Fuchang Kang

    How to execute powershell in a custom software

    Fuchang Kang

      I put some files in a custom software

      • check.bat
      • IIS_Security_Check.ps1
      • output.js

      the check.bat:

      @echo off
      powershell.exe -command "Set-ExecutionPolicy RemoteSigned"
      powershell.exe -file IIS_Security_Check.ps1
      cscript //nologo output.js

      I use this software to do some check. But when I run this in a Windows 2008 server. It hangs in row 2.

      I login the server by nsh, and excute the check.bat. It need to enter some "ENTER" to go on.


      Please help me how to excute powershell without to enter "ENTER".