Advertisement
unimis

IE Downgrade Script

Aug 5th, 2014
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. @echo off
  2.  
  3. cls
  4.  
  5. set IEVersion=0
  6.  
  7. IF exist C:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-*11.*.mum (
  8.  
  9. echo Internet Explorer 11 was found... Downgrading...
  10.  
  11. FORFILES /P C:\Windows\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Uninstalling package @fname
  12.  
  13. start /w pkgmgr /up:@fname /quiet /norestart"
  14.  
  15. set IEVersion=1
  16.  
  17. echo Internet Explorer 11 was removed
  18.  
  19. )
  20.  
  21. IF exist C:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-*10.*.mum (
  22.  
  23. echo Internet Explorer 10 was found... Downgrading...
  24.  
  25. FORFILES /P C:\Windows\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname
  26.  
  27. start /w pkgmgr /up:@fname /quiet /norestart""
  28.  
  29. set IEVersion=2
  30.  
  31. echo Internet Explorer 10 was removed
  32.  
  33. )
  34.  
  35. IF exist C:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-*9.*.mum (
  36.  
  37. echo Internet Explorer 9 was found... Downgrading...
  38.  
  39. FORFILES /P C:\Windows\servicing\Packages /M Microsoft-Windows-InternetExplorer-*9.*.mum /c "cmd /c echo Uninstalling package @fname
  40.  
  41. start /w pkgmgr /up:@fname /quiet /norestart"
  42.  
  43. set IEVersion=3
  44.  
  45. echo Internet Explorer 9 was removed
  46.  
  47. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement