简体   繁体   English

如何在服务器核心上安装.NET Framework升级?

[英]How do I install .NET Framework upgrades on Server Core?

I've a number of Server Core VMs on Azure, for a Service Fabric cluster. 我在Azure上有许多服务器核心VM,用于Service Fabric群集。 They run the 2016-Datacenter-Server-Core image. 他们运行2016-Datacenter-Server-Core映像。

The VMs have .NET Framework 4.6.2 installed by default. VM默认情况下安装了.NET Framework 4.6.2。 How can I upgrade the framework, eg to 4.7.1? 如何将框架升级到例如4.7.1?

KB4033393 is not available via Windows Update. KB4033393无法通过Windows Update获得。 I've tried manually downloading the KB and installing it: 我尝试手动下载并安装KB:

wget http://download.windowsupdate.com/d/msdownload/update/software/ftpk/2017/11/windows10.0-kb4033393-x64_2a569b5822abf71975ca7f9b0c8dd3791f326f40.msu -UseBasicParsing -OutFile windows10.0-kb4033393-x64_2a569b5822abf71975ca7f9b0c8dd3791f326f40.msu
wusa .\windows10.0-kb4033393-x64_2a569b5822abf71975ca7f9b0c8dd3791f326f40.msu

After accepting the license, it simply says: 接受许可后,它只是说:

The following updates were not installed: 未安装以下更新:

Update for Windows (KB4033393) Windows更新(KB4033393)

The offline installer linked by Hans works. Hans链接的脱机安装程序起作用。

  1. Navigate to the offline installer download page, eg https://www.microsoft.com/en-us/download/confirmation.aspx?id=56116 导航到脱机安装程序下载页面,例如https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=56116
  2. Get the URL for the download by copying it from the click here to download manually link, eg https://download.microsoft.com/download/9/E/6/9E63300C-0941-4B45-A0EC-0008F96DD480/NDP471-KB4033342-x86-x64-AllOS-ENU.exe 通过从单击此处复制以手动下载链接获取下载的URL,例如https://download.microsoft.com/download/9/E/6/9E63300C-0941-4B45-A0EC-0008F96DD480/NDP471-KB4033342 -x86-x64的阿洛斯-CHS.exe程序
  3. Download and install the update with PowerShell: 使用PowerShell下载并安装更新:

     wget https://download.microsoft.com/download/9/E/6/9E63300C-0941-4B45-A0EC-0008F96DD480/NDP471-KB4033342-x86-x64-AllOS-ENU.exe -UseBasicParsing -OutFile NDP471-KB4033342-x86-x64-AllOS-ENU.exe .\\NDP471-KB4033342-x86-x64-AllOS-ENU.exe /q /norestart 

You can use the task manager ( Ctrl + Alt + End when using RDP) to know when the installer is finished. 您可以使用任务管理器(使用RDP时按Ctrl + Alt + End )来了解安装程序何时完成。 You can verify the installation by listing version information with Get-ChildItem "HKLM:SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\" , or by running systeminfo which should list the relevant KB (eg KB4033393) under Hotfixe(s) . 您可以通过使用Get-ChildItem "HKLM:SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\"列出版本信息来验证安装,也可以通过运行systeminfo将在Hotfixe下列出相关的KB(例如KB4033393)来验证安装)

You can also exclude the /norestart parameter, the server will reboot automatically then after installation has finished. 您还可以排除/norestart参数,服务器将在安装完成后自动重新启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM