好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Windows Server 2012 R2 或 2016无法安装.Net 3.5.1

问题描述

使用 Windows Server 2012 R2 或 Windows Server 2016系统,发现在安装 .net 3.5.1 时报错,报错内容如下:

原因分析

找不到安装源文件。

解决办法

可以通过如下 PowerShell 脚本进行安装:

从开始菜单中找到 PowerShell,右击选择 以管理员身份运行。
输入如下脚本后回车执行:

 Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name UseWUServer -Value 0
 Restart-Service -Name wuauserv
 Install-WindowsFeature Net-Framework-Core
 Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name UseWUServer -Value 1
 Restart-Service -Name wuauserv

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

查看更多关于Windows Server 2012 R2 或 2016无法安装.Net 3.5.1的详细内容...

  阅读:48次