Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- set IEVersion=0
- IF exist C:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-*11.*.mum (
- echo Internet Explorer 11 was found... Downgrading...
- FORFILES /P C:\Windows\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Uninstalling package @fname
- start /w pkgmgr /up:@fname /quiet /norestart"
- set IEVersion=1
- echo Internet Explorer 11 was removed
- )
- IF exist C:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-*10.*.mum (
- echo Internet Explorer 10 was found... Downgrading...
- FORFILES /P C:\Windows\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname
- start /w pkgmgr /up:@fname /quiet /norestart""
- set IEVersion=2
- echo Internet Explorer 10 was removed
- )
- IF exist C:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-*9.*.mum (
- echo Internet Explorer 9 was found... Downgrading...
- FORFILES /P C:\Windows\servicing\Packages /M Microsoft-Windows-InternetExplorer-*9.*.mum /c "cmd /c echo Uninstalling package @fname
- start /w pkgmgr /up:@fname /quiet /norestart"
- set IEVersion=3
- echo Internet Explorer 9 was removed
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement