Pet*_*orf 8 windows-server-core dotnet-framework windows-server-2012
在 Windows Server 2008 R2 核心上,我使用 dism.exe 和功能名称:“NetFx3-ServerCore”,此功能在 Server 2012 (Windows Server 8) 上不可用。
在 Server 2012 Core 上使用标准 3.51 安装程序告诉我:“您必须使用角色管理工具来安装或配置 Microsoft .NET Framework 3.5”
在(Server 2012 的)GUI 版本中,我可以执行此操作,它会从 Microsoft.com 下载一个包,但是我如何在 Core 上执行此操作?
您可以使用 Powershell 来显示可用的 Windows 功能:
Import-Module ServerManager
Get-WindowsFeature | out-file C:\WindowsFeatures.txt -width 300
Run Code Online (Sandbox Code Playgroud)
因为数据又长又宽,最好将其通过管道传输到文件中并在那里查看。
它显示“.NET Framework 3.5 功能”可用,但“.NET Framework 3.5(包括 .NET 2.0 和 3.0)”已被删除。
但是,文件仍在 DVD 上,您可以使用:
dism /online /enable-feature /featurename:NetFX3 /source:D:\sources\sxs /all /LimitAccess
Run Code Online (Sandbox Code Playgroud)
或 PowerShell 'Add-WindowsFeature' commandlet 来安装它:
Add-WindowsFeature –name NET-Framework-Core -source D:\sources\sxs
Run Code Online (Sandbox Code Playgroud)
编辑:在安装了更新 1 (KB2919355) 的 Server 2012 R2 上,如果您使用的是原始 DVD/ISO,这将不起作用。您需要包含该更新的 DVD 或 ISO。对于新安装,请在应用 KB2919355 之前安装 .NET 3.5。
小智 5
dism /online /enable-feature /featurename:NetFx3 /All /LimitAccess /Source:x:\sources\sxs
x:
包含安装文件副本的安装媒体或映射网络共享的驱动器号在哪里。
归档时间: |
|
查看次数: |
32222 次 |
最近记录: |