123下一页
返回列表 发新帖
查看: 254|回复: 28

云主机Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5.1解决办法

[复制链接]

1万

热度

1万

元宝

1万

贡献

金牌草根

发表于 2018-6-27 17:36:51 | 显示全部楼层 |阅读模式
[color=rgb(55, 61, 65)]Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5.1

[color=rgb(153, 153, 153)]更新时间:2017-08-16 16:34:41


[color=rgb(51, 51, 51)]问题描述

使用 Windows Server 2012 R2 或 Windows Server 2016系统,发现在安装 .NET Framework 3.5.1 时报错,报错内容如下图所示。

原因分析

找不到安装源文件。

解决办法

您可以使用如下 PowerShell 脚本进行安装。

  • 从 开始 菜单中找到 PowerShell,右键单击选择 以管理员身份运行。

  • 输入如下脚本后,按回车键执行。

    • [color=rgb(102, 0, 102)]Set[color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]ItemProperty [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Path [color=rgb(0, 136, 0)]'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Name [color=rgb(102, 0, 102)]UseWUServer [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Value [color=rgb(0, 102, 102)]0
    • [color=rgb(102, 0, 102)]Restart[color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Service [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Name wuauserv
    • [color=rgb(102, 0, 102)]Install[color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]WindowsFeature [color=rgb(102, 0, 102)]Net[color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Framework[color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Core
    • [color=rgb(102, 0, 102)]Set[color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]ItemProperty [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Path [color=rgb(0, 136, 0)]'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Name [color=rgb(102, 0, 102)]UseWUServer [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Value [color=rgb(0, 102, 102)]1
    • [color=rgb(102, 0, 102)]Restart[color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Service [color=rgb(102, 102, 0)]-[color=rgb(102, 0, 102)]Name wuauserv

    注意:

    1. Windows Server 2012 与 Windows Server 2016 内存占用较高,安装其他应用程序使内存消耗更高,可能会导致内存不足引起安装失败,因此建议增加物理内存,如果是 IO 优化实例,可以酌情 [color=rgb(0, 183, 211)]开启系统虚拟内存

    2. 如果安装报错:0x800f081f,那么请检查公网网络是否正常,如果正常,可能是连接微软 update 服务器链路不稳定导致更新失败,建议更换时间段重试。




本文来源于网友学习研究交流 www.caogen8.co,请以学习研究交流为主。
如果您没有贡献积分,可以直接免费领取,免费领取
如果你需要加入本学习研究交流,请以学习研究交流为目的,免责声明
如果找不到您要的资源,请搜索一下,点击搜索

热度

元宝

贡献

步入草根

发表于 2025-11-10 19:40:59 | 显示全部楼层
6666666

热度

元宝

贡献

步入草根

发表于 2025-11-13 02:53:14 | 显示全部楼层
支持楼主

热度

元宝

贡献

步入草根

发表于 2025-11-13 10:48:50 | 显示全部楼层
支持楼主

热度

元宝

贡献

步入草根

发表于 2025-12-18 14:01:41 | 显示全部楼层
支持一下

热度

元宝

贡献

步入草根

发表于 2025-12-20 12:50:55 | 显示全部楼层
6666666

热度

元宝

贡献

步入草根

发表于 2025-12-22 13:09:08 | 显示全部楼层
支持一下

热度

元宝

贡献

步入草根

发表于 2025-12-22 18:28:20 | 显示全部楼层
支持一下

热度

元宝

贡献

步入草根

发表于 2025-12-26 05:44:06 | 显示全部楼层
支持楼主

热度

元宝

贡献

步入草根

发表于 2025-12-30 06:28:27 | 显示全部楼层
我来看看怎么个事儿
下一页 »
123下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|草根吧