Remove IE9 using WMI
Posted on 2012-03-28
I would like to know if it's possible to write code using WMI and somehow tie that to a link on a web page for a user to click on in order to run the WMI code. The reason I ask is because I support 500+ employees and we use a web app that is only compatible with IE8 and lately IE9 has been included in Windows Update. So rather than get flodded with calls I was wondering if it could be handled by having the user navigate to a page and click on a link to execute the code. I have never written code using WMI but from what I have read this is what I should be using.
- User clicks on link from internal website.
- Code needs to check to first see if IE9 is installed. If so, continue to remove if not, display message that IE9 is not installed.
Also, users have Windows XP, 7x32 and 7x64 installed. I don't believe IE9 works with XP so I should only need the code to work with 7x32 and 7x64.
I'm using ASP.NET 4.0 and C#.
Thanks in advance!