Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make wmic uninstall command take Y (yes) as a default input prompt

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?

like image 508
Sudhakar Avatar asked Feb 06 '12 21:02

Sudhakar


1 Answers

Add the /nointeractive switch.

like image 68
Nathan Rice Avatar answered Oct 23 '22 05:10

Nathan Rice