11

I'm using the uninstall command in wmic to uninstall a program. product where name=prg_name call uninstall

When its executed it prompts the user to press 'Y/N'. I would like to automate it so that it takes 'Y' as default always. Could you please give the exact command to do just that?

Sudhakar
  • 2,904
  • 8
  • 33
  • 47

1 Answers1

15

Add the /nointeractive switch.

Nathan Rice
  • 3,091
  • 1
  • 20
  • 30