none
Uninstall IE 11 through CLI on window10, How to reinstall? RRS feed

  • Question

  • Hi All,

    I am running win 10 with 1703 version. Previously, I had uninstalled IE11 through CLI.

    FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart"

    How can I reinstall IE? I cant find any installation package on window 10 or on windows features.Thanks

    Nat

    Tuesday, June 13, 2017 8:10 AM

Answers

  • only other thing I can think of, is to try the equivalent, with DISM

    dism /online /add-package /package-path:<driveletterandfullpathtocabfiles>

    Otherwise, looks like a refresh/recovery/rebuild then?


    Don [doesn't work for MSFT, and they're probably glad about that ;]

     Finally, I grab the cab from win10 ISO and try with 

     dism /online /add-package /packagepath:<driveletterandfullpathtocabfiles>

     packagepath should be one character.Now IE11 go back to window features. Thanks guy.

    Actually, I did try recovery on virtual machine. No matter recovery or oobe setting on device, it doesn't help. So weird.

    • Marked as answer by nat w Monday, June 19, 2017 3:12 AM
    Monday, June 19, 2017 3:11 AM
  • try this, which may fail, if the manifest (MUM) files are also removed by your earlier efforts..

    FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Installing package @fname && start /w pkgmgr /ip:@fname /quiet /norestart"

    You *may* need to locate the package files for reinstallation to succeed, since your earlier removal method has not simply disabled the feature-state, it has removed the entire package bundle.

    The files will be on the Win10 install source media, but note that there may be package file version issues, since the monthly updates for Windows will most likely have updated original package cabfiles.


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Error occurred.

    Note: PkgMgr.exe has been deprecated. Please update your scripts to DISM.exe to install, uninstall, configure, and update features and packages for windows.

    see http://go.microsoft.com/fwlink/?LinkID=195329 for more information,

    operation failed with 0x80070307

    already tried.

           dism /online /cleanup-image /restorehealth

           sfc /scannow

    only other thing I can think of, is to try the equivalent, with DISM

    dism /online /add-package /package-path:<driveletterandfullpathtocabfiles>

    Otherwise, looks like a refresh/recovery/rebuild then?


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    • Marked as answer by nat w Monday, June 19, 2017 3:11 AM
    Friday, June 16, 2017 12:08 PM

All replies

  • You don't have this option?


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Tuesday, June 13, 2017 8:39 AM
  • Yes,I don't have it. I can't run offine installer of IE11 on win7 or enable it on windows features.
    Tuesday, June 13, 2017 9:40 AM
  • what if you try with DISM?
    (assuming you are using 64bit Win10)

    dism /online /get-featureinfo:Internet-Explorer-Optional-amd64

    https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/enable-or-disable-windows-features-using-dism


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Tuesday, June 13, 2017 9:21 PM
  • what if you try with DISM?
    (assuming you are using 64bit Win10)

    dism /online /get-featureinfo:Internet-Explorer-Optional-amd64


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Result:

    C:\WINDOWS\system32>dism /online /get-featureinfo:Internet-Explorer-Optional-amd64

    Deployment Image Servicing and Management tool
    Version: 10.0.15063.0

    Image Version: 10.0.15063.0


    Error: 0x800f080c

    Feature name Internet-Explorer-Optional-amd64 is unknown.
    A Windows feature name was not recognized.
    Use the /Get-Features option to find the name of the feature in the image and try the command again.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

    Wednesday, June 14, 2017 5:47 AM
  • ok, try this, to see what features are available and their status:

    C:\WINDOWS\system32>dism /online /get-features > %TEMP%\feats.txt
    C:\WINDOWS\system32>notepad %TEMP\feats.txt

    C:\WINDOWS\system32>start %temp%\feats.txt

    That will dump the features list into the text file and open it for you, for viewing.
    Do you have any "Internet-Explorer-Optional" features? What's the status of those?

    I'm using Win10-1607 64bit, and this is what I get:


    Deployment Image Servicing and Management tool
    Version: 10.0.14393.0
    Image Version: 10.0.14393.0
    Features listing for package : Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.14393.0

    Feature Name : Internet-Explorer-Optional-amd64

    State : Enabled

    Feature Name : NetFx3

    State : Enabled

    Feature Name : IIS-WebServerRole

    State : Disabled

    etc etc


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Wednesday, June 14, 2017 10:29 AM
  • ok, try this, to see what features are available and their status:

    C:\WINDOWS\system32>dism /online /get-features > %TEMP%\feats.txt
    C:\WINDOWS\system32>notepad %TEMP\feats.txt

    C:\WINDOWS\system32>start %temp%\feats.txt

    That will dump the features list into the text file and open it for you, for viewing.
    Do you have any "Internet-Explorer-Optional" features? What's the status of those?

    I'm using Win10-1607 64bit, and this is what I get:


    Deployment Image Servicing and Management tool
    Version: 10.0.14393.0
    Image Version: 10.0.14393.0
    Features listing for package : Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.14393.0

    Feature Name : Internet-Explorer-Optional-amd64

    State : Enabled

    Feature Name : NetFx3

    State : Enabled

    Feature Name : IIS-WebServerRole

    State : Disabled

    etc etc


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    No IE found.

    Result:

    Deployment Image Servicing and Management tool
    Version: 10.0.15063.0

    Image Version: 10.0.15063.0

    Features listing for package : Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.15063.0

    Feature Name : Microsoft-Windows-HyperV-Guest-Package
    State : Enabled

    Feature Name : LegacyComponents
    State : Disabled

    Feature Name : DirectPlay
    State : Disabled

    Feature Name : SimpleTCP
    State : Disabled

    Feature Name : SNMP
    State : Disabled

    Feature Name : WMISnmpProvider
    State : Disabled

    Feature Name : MicrosoftWindowsPowerShellV2Root
    State : Enabled

    Feature Name : MicrosoftWindowsPowerShellV2
    State : Enabled

    Feature Name : Windows-Identity-Foundation
    State : Disabled

    Feature Name : Microsoft-Windows-Subsystem-Linux
    State : Disabled

    Feature Name : NetFx3
    State : Enabled

    Feature Name : IIS-WebServerRole
    State : Disabled

    Feature Name : IIS-WebServer
    State : Disabled

    Feature Name : IIS-CommonHttpFeatures
    State : Disabled

    Feature Name : IIS-HttpErrors
    State : Disabled

    Feature Name : IIS-HttpRedirect
    State : Disabled

    Feature Name : IIS-ApplicationDevelopment
    State : Disabled

    Feature Name : IIS-NetFxExtensibility
    State : Disabled

    Feature Name : IIS-NetFxExtensibility45
    State : Disabled

    Feature Name : IIS-HealthAndDiagnostics
    State : Disabled

    Feature Name : IIS-HttpLogging
    State : Disabled

    Feature Name : IIS-LoggingLibraries
    State : Disabled

    Feature Name : IIS-RequestMonitor
    State : Disabled

    Feature Name : IIS-HttpTracing
    State : Disabled

    Feature Name : IIS-Security
    State : Disabled

    Feature Name : IIS-URLAuthorization
    State : Disabled

    Feature Name : IIS-RequestFiltering
    State : Disabled

    Feature Name : IIS-IPSecurity
    State : Disabled

    Feature Name : IIS-Performance
    State : Disabled

    Feature Name : IIS-HttpCompressionDynamic
    State : Disabled

    Feature Name : IIS-WebServerManagementTools
    State : Disabled

    Feature Name : IIS-ManagementScriptingTools
    State : Disabled

    Feature Name : IIS-IIS6ManagementCompatibility
    State : Disabled

    Feature Name : IIS-Metabase
    State : Disabled

    Feature Name : WAS-WindowsActivationService
    State : Disabled

    Feature Name : WAS-ProcessModel
    State : Disabled

    Feature Name : WAS-NetFxEnvironment
    State : Disabled

    Feature Name : WAS-ConfigurationAPI
    State : Disabled

    Feature Name : IIS-HostableWebCore
    State : Disabled

    Feature Name : WCF-HTTP-Activation
    State : Disabled

    Feature Name : WCF-NonHTTP-Activation
    State : Disabled

    Feature Name : WCF-Services45
    State : Enabled

    Feature Name : WCF-HTTP-Activation45
    State : Disabled

    Feature Name : WCF-TCP-Activation45
    State : Disabled

    Feature Name : WCF-Pipe-Activation45
    State : Disabled

    Feature Name : WCF-MSMQ-Activation45
    State : Disabled

    Feature Name : WCF-TCP-PortSharing45
    State : Enabled

    Feature Name : IIS-StaticContent
    State : Disabled

    Feature Name : IIS-DefaultDocument
    State : Disabled

    Feature Name : IIS-DirectoryBrowsing
    State : Disabled

    Feature Name : IIS-WebDAV
    State : Disabled

    Feature Name : IIS-WebSockets
    State : Disabled

    Feature Name : IIS-ApplicationInit
    State : Disabled

    Feature Name : IIS-ASPNET
    State : Disabled

    Feature Name : IIS-ASPNET45
    State : Disabled

    Feature Name : IIS-ASP
    State : Disabled

    Feature Name : IIS-CGI
    State : Disabled

    Feature Name : IIS-ISAPIExtensions
    State : Disabled

    Feature Name : IIS-ISAPIFilter
    State : Disabled

    Feature Name : IIS-ServerSideIncludes
    State : Disabled

    Feature Name : IIS-CustomLogging
    State : Disabled

    Feature Name : IIS-BasicAuthentication
    State : Disabled

    Feature Name : IIS-HttpCompressionStatic
    State : Disabled

    Feature Name : IIS-ManagementConsole
    State : Disabled

    Feature Name : IIS-ManagementService
    State : Disabled

    Feature Name : IIS-WMICompatibility
    State : Disabled

    Feature Name : IIS-LegacyScripts
    State : Disabled

    Feature Name : IIS-LegacySnapIn
    State : Disabled

    Feature Name : IIS-FTPServer
    State : Disabled

    Feature Name : IIS-FTPSvc
    State : Disabled

    Feature Name : IIS-FTPExtensibility
    State : Disabled

    Feature Name : MSMQ-Container
    State : Disabled

    Feature Name : MSMQ-Server
    State : Disabled

    Feature Name : MSMQ-Triggers
    State : Disabled

    Feature Name : MSMQ-HTTP
    State : Disabled

    Feature Name : MSMQ-Multicast
    State : Disabled

    Feature Name : MSMQ-DCOMProxy
    State : Disabled

    Feature Name : NetFx4-AdvSrvs
    State : Enabled

    Feature Name : NetFx4Extended-ASPNET45
    State : Disabled

    Feature Name : MediaPlayback
    State : Enabled

    Feature Name : WindowsMediaPlayer
    State : Enabled

    Feature Name : Printing-PrintToPDFServices-Features
    State : Enabled

    Feature Name : Printing-XPSServices-Features
    State : Enabled

    Feature Name : RasRip
    State : Disabled

    Feature Name : MSRDC-Infrastructure
    State : Enabled

    Feature Name : SearchEngine-Client-Package
    State : Enabled

    Feature Name : TelnetClient
    State : Enabled

    Feature Name : TFTP
    State : Disabled

    Feature Name : Xps-Foundation-Xps-Viewer
    State : Enabled

    Feature Name : WorkFolders-Client
    State : Enabled

    Feature Name : SMB1Protocol
    State : Enabled

    Feature Name : Printing-Foundation-Features
    State : Enabled

    Feature Name : Printing-Foundation-LPRPortMonitor
    State : Disabled

    Feature Name : Printing-Foundation-LPDPrintService
    State : Disabled

    Feature Name : Printing-Foundation-InternetPrinting-Client
    State : Enabled

    Feature Name : FaxServicesClientPackage
    State : Enabled

    Feature Name : TIFFIFilter
    State : Disabled

    The operation completed successfully.

    Thursday, June 15, 2017 3:12 AM
  • try this, which may fail, if the manifest (MUM) files are also removed by your earlier efforts..

    FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Installing package @fname && start /w pkgmgr /ip:@fname /quiet /norestart"

    You *may* need to locate the package files for reinstallation to succeed, since your earlier removal method has not simply disabled the feature-state, it has removed the entire package bundle.

    The files will be on the Win10 install source media, but note that there may be package file version issues, since the monthly updates for Windows will most likely have updated original package cabfiles.


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Thursday, June 15, 2017 8:57 AM
  • try this, which may fail, if the manifest (MUM) files are also removed by your earlier efforts..

    FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Installing package @fname && start /w pkgmgr /ip:@fname /quiet /norestart"

    You *may* need to locate the package files for reinstallation to succeed, since your earlier removal method has not simply disabled the feature-state, it has removed the entire package bundle.

    The files will be on the Win10 install source media, but note that there may be package file version issues, since the monthly updates for Windows will most likely have updated original package cabfiles.


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Error occurred.

    Note: PkgMgr.exe has been deprecated. Please update your scripts to DISM.exe to install, uninstall, configure, and update features and packages for windows.

    see http://go.microsoft.com/fwlink/?LinkID=195329 for more information,

    operation failed with 0x80070307

    already tried.

           dism /online /cleanup-image /restorehealth

           sfc /scannow

    Friday, June 16, 2017 6:44 AM
  • Hi,

    I tested on my side, the command you provided would not uninstall Internet Explorer 11 in Windows 10.

    Internet Explorer 11 is a build-in software in Windows 10, the command just work in Windows 7.

    Here is an article about the command:

    How to uninstall Internet Explorer 11

    https://blogs.msdn.microsoft.com/how_to_uninstall_ie11/2014/02/21/how-to-uninstall-internet-explorer-11/

    So I think you could try to check the Internet Explorer 11 in Programs and Features again.

    If it not exist, please check in C:\Program Files (x86)\Internet Explorer\Internet Explorer 11.

    Bests,

    Joy.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, June 16, 2017 7:28 AM
    Moderator
  • try this, which may fail, if the manifest (MUM) files are also removed by your earlier efforts..

    FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Installing package @fname && start /w pkgmgr /ip:@fname /quiet /norestart"

    You *may* need to locate the package files for reinstallation to succeed, since your earlier removal method has not simply disabled the feature-state, it has removed the entire package bundle.

    The files will be on the Win10 install source media, but note that there may be package file version issues, since the monthly updates for Windows will most likely have updated original package cabfiles.


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    Error occurred.

    Note: PkgMgr.exe has been deprecated. Please update your scripts to DISM.exe to install, uninstall, configure, and update features and packages for windows.

    see http://go.microsoft.com/fwlink/?LinkID=195329 for more information,

    operation failed with 0x80070307

    already tried.

           dism /online /cleanup-image /restorehealth

           sfc /scannow

    only other thing I can think of, is to try the equivalent, with DISM

    dism /online /add-package /package-path:<driveletterandfullpathtocabfiles>

    Otherwise, looks like a refresh/recovery/rebuild then?


    Don [doesn't work for MSFT, and they're probably glad about that ;]

    • Marked as answer by nat w Monday, June 19, 2017 3:11 AM
    Friday, June 16, 2017 12:08 PM
  • only other thing I can think of, is to try the equivalent, with DISM

    dism /online /add-package /package-path:<driveletterandfullpathtocabfiles>

    Otherwise, looks like a refresh/recovery/rebuild then?


    Don [doesn't work for MSFT, and they're probably glad about that ;]

     Finally, I grab the cab from win10 ISO and try with 

     dism /online /add-package /packagepath:<driveletterandfullpathtocabfiles>

     packagepath should be one character.Now IE11 go back to window features. Thanks guy.

    Actually, I did try recovery on virtual machine. No matter recovery or oobe setting on device, it doesn't help. So weird.

    • Marked as answer by nat w Monday, June 19, 2017 3:12 AM
    Monday, June 19, 2017 3:11 AM