Windows Server 2012 / 2016 安装 .Net Framework 3.5(PowerShell)
2017-04-20 11:35
537 查看
原文链接:https://help.aliyun.com/knowledge_detail/38203.html
从开始菜单中找到 PowerShell,右击选择 以管理员身份运行。
输入如下脚本后回车执行:
问题描述
使用 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 / 2016 安装 .Net Framework 3.5失败
- Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5
- 云服务器Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5
- Windows Server 2012 R2 或 2016 无法安装 .Net 3.5.1 .NET Framework 3.5
- Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5.1
- Windows Server 2012 R2 里面如何安装Net Framework 3.5
- Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5.1
- windows server 2012 安装 .net framework 3.5
- Windows Server 2012安装 .NET Framework 3.5
- 0.Win8.1,Win10,Windows Server 2012 安装 Net Framework 3.5
- Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5.1
- Windows Server 2012 R2 或 2016 无法安装 .NET Framework 3.5.1的解决方案
- 在Windows Server 2012 中安装 .NET 3.5 Framework
- Windows Server 2012 安装.NET Framework 3.5报错
- Windows Server 2012 R2 安装.NET Framework 3.5报错
- Windows Server 2012 离线安装.NET2.0-3.5的方法
- Windows Server 2012 离线安装.NET2.0-3.5的方法
- Windows Server 2012/win8 iis8 上安装 asp.net 4.5 当时用了mvc5 .net framework 4.5 所以得装下
- Windows Server 2012 安装.NET2.0-3.5的方法
- 在Windows Server 2012下安装.net framework 3.5