Script for Downgrading IE 11 all the way to IE 8, chokes on KACE but runs locally just fine
@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
)
Answers (1)
If this is a .bat file, you might try adding it to your kscript as a dependency and calling it this way: %windir%\sysnative\cmd.exe /c nameofyourfile.bat
I think that should call the 64 bit version of cmd.exe.
Comments:
-
you sir, are the man. We had to work with psexec a little bit but we got it running thanks to that article. - gpalau 10 years ago
-
I'running into the same issue. Do you mind posting a screenshot of your kscript with psexec? - JerryLnF 10 years ago
-
Thank you so much I've been banging my head against the wall because of this. Say I wanted to just go down to IE9, do you think I could just remove that portion of your script? - JerryLnF 10 years ago
-
yeah if you take apart the script its going to work up till that point... - gpalau 10 years ago
-
Worked like a charm, I'll need to play around with only downgrading to IE9 though. Thanks so much... - JerryLnF 10 years ago
You may have to something like pstools psexec to do this for you. You can add psexec as a dependency and use it to login as administrator and call the bat file.
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx - SMal.tmcc 10 years ago