I put some files in a custom software
@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".
Add a ‘-inputformat NONE’ argument to the second command.
Thanks. It works