Configure WinRM using a .bat file without yes/no prompt

I want to configure winrm in all my clients using a bat file. after running bat file winrm quickconfig command there's a prompt for a yes/no answer. I don't know how to answer "yes" in the batch file.


Solution 1:

Adding the parameter -quiet to the quickconfig call will suppress the yes/no prompt, and do what you want.

winrm quickconfig -quiet