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.
1 Answer
Adding the parameter -quiet
to the quickconfig call will suppress the yes/no prompt, and do what you want.
winrm quickconfig -quiet
-
1
/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).