Rammy Charles
asked on
Pass though "yes" answer in batch script
I am looking to create a batch file to configure WinRM on all windows 7\8 desktops. The command is "winrm quickconfig"
When I run this from a command prompt you have to answer two questions with "y" or "yes." How do I pass those answers through to the batch script to automate the command?
When I run this from a command prompt you have to answer two questions with "y" or "yes." How do I pass those answers through to the batch script to automate the command?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or you could try:
ECHO y | winrm quickconfig
%SendKeys% "y{ENTER}"