zoukankan      html  css  js  c++  java
  • 控制IE浏览器升级降级

    如果系统现在是IE11,要退回到IE8,那么

    ①到控制面板里-->已安装的更新-->先卸载IE11

    ②管理员身份执行以下脚本,例如:blockIE11.cmd /B,重启电脑

    @echo off

    Echo MICROSOFT TOOL KIT TO DISABLE DELIVERY OF
    Echo INTERNET EXPLORER 11
    Echo.
    Echo Copyright (C) Microsoft Corporation. All rights reserved.
    Echo.

    set ProductName=Internet Explorer 11
    set REGBlockKey=HKLMSOFTWAREMicrosoftInternet ExplorerSetup11.0
    set REGBlockValue=DoNotAllowIE11

    set RemoteMachine=%1

    if ""=="%1" goto Usage
    if "/?"=="%1" goto Usage
    if /I "/H"=="%1" goto Usage
    if /I "/B"=="%1" goto LocalMachine
    if /I "/U"=="%1" goto LocalMachine
    set RemoteMachineName=%1
    set Action=%2

    :Parse
    if /I "/B" == "%Action%" goto Block
    if /I "/U" == "%Action%" goto UnBlock
    goto Usage

    :Block
    Echo Blocking deployment of %ProductName% on %RemoteMachineName%
    REG ADD "\%RemoteMachine%\%REGBlockKey%" /v %REGBlockValue% /t REG_DWORD /d 1 /f
    goto End

    :UnBlock
    Echo Unblocking deployment of %ProductName% on %RemoteMachineName%
    REG DELETE "\%RemoteMachine%\%REGBlockKey%" /v %REGBlockValue% /f
    goto End

    :LocalMachine
    echo LOCAL!
    set Action=%1
    set RemoteMachine=.
    set RemoteMachineName=the local machine
    goto Parse

    :Usage
    Echo.
    Echo This tool can be used to remotely block or unblock the delivery of
    Echo %ProductName% via Automatic Updates.
    Echo.
    Echo ------------------------------------------------------------
    Echo Usage:
    Echo %0 [machine name] [/B] [/U] [/H]
    REM [machine name] [/B|U|H]
    Echo B = Block %ProductName% deployment
    Echo U = Allow %ProductName% deployment
    Echo H = Help
    Echo.
    Echo To block or unblock installation on the local machine use
    Echo period ("." with no quotes) as the machine name
    Echo.
    Echo Examples:
    Echo %0 mymachine /B (blocks delivery on machine "mymachine")
    Echo.
    Echo %0 /U (unblocks delivery on the local machine)
    Echo ------------------------------------------------------------
    Echo.

    :End

    ③循环上两步,卸载IE10,以下是IE10脚本,重启电脑

    @echo off

    Echo MICROSOFT TOOL KIT TO DISABLE DELIVERY OF
    Echo MICROSOFT INTERNET EXPLORER 10
    Echo.
    Echo Copyright (C) Microsoft Corporation. All rights reserved.
    Echo.

    set ProductName=Internet Explorer 10
    set REGBlockKey=HKLMSOFTWAREMicrosoftInternet ExplorerSetup10.0
    set REGBlockValue=DoNotAllowIE10

    set RemoteMachine=%1

    if ""=="%1" goto Usage
    if "/?"=="%1" goto Usage
    if /I "/H"=="%1" goto Usage
    if /I "/B"=="%1" goto LocalMachine
    if /I "/U"=="%1" goto LocalMachine
    set RemoteMachineName=%1
    set Action=%2

    :Parse
    if /I "/B" == "%Action%" goto Block
    if /I "/U" == "%Action%" goto UnBlock
    goto Usage

    :Block
    Echo Blocking deployment of %ProductName% on %RemoteMachineName%
    REG ADD "\%RemoteMachine%\%REGBlockKey%" /v %REGBlockValue% /t REG_DWORD /d 1 /f
    goto End

    :UnBlock
    Echo Unblocking deployment of %ProductName% on %RemoteMachineName%
    REG DELETE "\%RemoteMachine%\%REGBlockKey%" /v %REGBlockValue% /f
    goto End

    :LocalMachine
    echo LOCAL!
    set Action=%1
    set RemoteMachine=.
    set RemoteMachineName=the local machine
    goto Parse

    :Usage
    Echo.
    Echo This tool can be used to remotely block or unblock the delivery of
    Echo %ProductName% via Automatic Updates.
    Echo.
    Echo ------------------------------------------------------------
    Echo Usage:
    Echo %0 [machine name] [/B] [/U] [/H]
    REM [machine name] [/B|U|H]
    Echo B = Block %ProductName% deployment
    Echo U = Allow %ProductName% deployment
    Echo H = Help
    Echo.
    Echo To block or unblock installation on the local machine use
    Echo period ("." with no quotes) as the machine name
    Echo.
    Echo Examples:
    Echo %0 mymachine /B (blocks delivery on machine "mymachine")
    Echo.
    Echo %0 /U (unblocks delivery on the local machine)
    Echo ------------------------------------------------------------
    Echo.

    :End


    ④循环上两步,卸载IE9,以下是IE9脚本,重启电脑

    @echo off

    Echo MICROSOFT TOOL KIT TO DISABLE DELIVERY OF
    Echo MICROSOFT INTERNET EXPLORER 9
    Echo.
    Echo Copyright (C) Microsoft Corporation. All rights reserved.
    Echo.

    set ProductName=Internet Explorer 9
    set REGBlockKey=HKLMSOFTWAREMicrosoftInternet ExplorerSetup9.0
    set REGBlockValue=DoNotAllowIE90

    set RemoteMachine=%1

    if ""=="%1" goto Usage
    if "/?"=="%1" goto Usage
    if /I "/H"=="%1" goto Usage
    if /I "/B"=="%1" goto LocalMachine
    if /I "/U"=="%1" goto LocalMachine
    set RemoteMachineName=%1
    set Action=%2

    :Parse
    if /I "/B" == "%Action%" goto Block
    if /I "/U" == "%Action%" goto UnBlock
    goto Usage

    :Block
    Echo Blocking deployment of %ProductName% on %RemoteMachineName%
    REG ADD "\%RemoteMachine%\%REGBlockKey%" /v %REGBlockValue% /t REG_DWORD /d 1 /f
    goto End

    :UnBlock
    Echo Unblocking deployment of %ProductName% on %RemoteMachineName%
    REG DELETE "\%RemoteMachine%\%REGBlockKey%" /v %REGBlockValue% /f
    goto End

    :LocalMachine
    echo LOCAL!
    set Action=%1
    set RemoteMachine=.
    set RemoteMachineName=the local machine
    goto Parse

    :Usage
    Echo.
    Echo This tool can be used to remotely block or unblock the delivery of
    Echo %ProductName% via Automatic Updates.
    Echo.
    Echo ------------------------------------------------------------
    Echo Usage:
    Echo %0 [machine name] [/B] [/U] [/H]
    REM [machine name] [/B|U|H]
    Echo B = Block %ProductName% deployment
    Echo U = Allow %ProductName% deployment
    Echo H = Help
    Echo.
    Echo To block or unblock installation on the local machine use
    Echo period ("." with no quotes) as the machine name
    Echo.
    Echo Examples:
    Echo %0 mymachine /B (blocks delivery on machine "mymachine")
    Echo.
    Echo %0 /U (unblocks delivery on the local machine)
    Echo ------------------------------------------------------------
    Echo.

    :End

    ⑤如果要恢复,逐个执行blockIEXX.cmd /U,重启电脑

    ⑥安装新版本补丁

    安装失败的话,参照:

    Method 1:
    Run the Windows Update troubleshooter and check.
    Open the Windows Update troubleshooter

    http://Windows.microsoft.com/en-US/Windows7/Open-the-Windows-Update-troubleshooter

     下载:WindowsUpdateDiagnostic.diagcab 

    Method 2:
    Try installing the update in a Clean Boot state.
    How to troubleshoot a problem by performing a Clean Boot in Windows Vista or in Windows 7
    http://support.microsoft.com/kb/929135
    Note: After Clean Boot troubleshooting step, refer to “How to reset the computer to start as usual after troubleshooting with Clean Boot” from the article.

    Method 3:

    Disable the security software temporarily and try to update.

    http://Windows.microsoft.com/en-US/Windows7/Disable-antivirus-software

    Note: Antivirus software can help protect the computer against viruses and other security threats. In most cases, you should not disable the antivirus software. If you do have to temporarily disable it to install other software, you should re-enable it as soon as you're done. If you are connected to the Internet or a network during the time the antivirus software is disabled, your computer is vulnerable to attacks.

    Refer to the help article:

    Troubleshoot problems with installing updates

    http://Windows.microsoft.com/en-us/Windows7/Troubleshoot-problems-with-installing-updates

     [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerSetup11.0] 
    "DoNotOfferIE11AU"=dword:00000001 
    "REGBlockValue"="DoNotAllowIE11"

  • 相关阅读:
    删除sql注入
    查询所有数据库,数据集
    删除SQL注入的一些方法总结
    需求变更
    ASP/SQL 注入天书
    js元素闪动效果
    JS 运行、复制、另存为 代码。
    判断是否是手机访问及大致手机网页格式
    过滤资源地址
    Tomcat目录介绍以及运行时寻找class的顺序
  • 原文地址:https://www.cnblogs.com/RocCnBlog/p/4386058.html
Copyright © 2011-2022 走看看