Configure WinRM using a .bat file without yes/no prompt
24,384
Adding the parameter -quiet
to the quickconfig call will suppress the yes/no prompt, and do what you want.
winrm quickconfig -quiet
Related videos on Youtube
Author by
dave
Updated on September 18, 2022Comments
-
dave over 1 year
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.-
Taylor McKay over 11 yearsCan you post the script you have written ?
-
dave over 11 yearsthis is the code : winrm quickconfig and i tried to force a yes answer by using "echo y" and that didin't work.
-
Hecter over 11 yearsIn general, if you want to run an interactive command-line tool non-interactively, you need to find a command line switch. Often, it's something like
/y
,-y
,/q
,-q
(for "yes" or "quiet"). Generally, more details can be found by runningcommand /?
(Windows/DOS),cmnd --help
orman cmnd
(Unix/Linux), orGet-Help Ridiculously-Long-Command-Name
(PowerShell).
-
-
dave over 11 yearswell! that worked! Many TNX