PowerShell DSC、Server 2019、.NET 3.5 无法从源安装
PowerShell DSC, Server 2019, .NET 3.5 failing to install from source
我正在尝试使用 DSC 从源代码安装 .NET 3.5,因为我的服务器无法直接连接到 MSFT。但它失败了,错误代码为 0x800f0954。这是代码:
WindowsFeature NET_3_5 {
Name = "Net-Framework-Features"
Ensure = "Present"
Source = "\server_share_fqdn\share_name\S2019\sources\SxS"
}
WindowsFeature NET_3_5_Core {
Name = "Net-Framework-Core"
Ensure = "Present"
Source = "\server_share_fqdn\share_name\S2019\sources\SxS"
}
我在哪里可以找到有关如何解决此问题或出了什么问题的更多信息?如果这有所作为,当我 运行 以下内容时,它在全新安装时显示为“已删除”:
Get-WindowsFeature -Name Net-Framework-*
Display Name Name Install State
------------ ---- -------------
[ ] .NET Framework 3.5 Features NET-Framework-Features Available
[ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0) NET-Framework-Core Removed
[X] .NET Framework 4.7 Features NET-Framework-45-Fea... Installed
[X] .NET Framework 4.7 NET-Framework-45-Core Installed
[X] ASP.NET 4.7 NET-Framework-45-ASPNET Installed
这里也是一样。似乎是 DSC 目标正在重定向到 WSUS。
This article 描述了问题并进行了修复。切入正题,更新以下注册表项并重新启动。
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
Property: UseWUServer
Value: 0
或在 DSC 代码中:
Import-DscResource -ModuleName PSDesiredStateConfiguration
Registry Disable_WSUS {
Ensure = "Present"
Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"
ValueName = "UseWUServer"
ValueData = "0"
}
我也想在 setting the reboot flag and continue 上工作,但还没有弄清楚。
我正在尝试使用 DSC 从源代码安装 .NET 3.5,因为我的服务器无法直接连接到 MSFT。但它失败了,错误代码为 0x800f0954。这是代码:
WindowsFeature NET_3_5 {
Name = "Net-Framework-Features"
Ensure = "Present"
Source = "\server_share_fqdn\share_name\S2019\sources\SxS"
}
WindowsFeature NET_3_5_Core {
Name = "Net-Framework-Core"
Ensure = "Present"
Source = "\server_share_fqdn\share_name\S2019\sources\SxS"
}
我在哪里可以找到有关如何解决此问题或出了什么问题的更多信息?如果这有所作为,当我 运行 以下内容时,它在全新安装时显示为“已删除”:
Get-WindowsFeature -Name Net-Framework-*
Display Name Name Install State
------------ ---- -------------
[ ] .NET Framework 3.5 Features NET-Framework-Features Available
[ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0) NET-Framework-Core Removed
[X] .NET Framework 4.7 Features NET-Framework-45-Fea... Installed
[X] .NET Framework 4.7 NET-Framework-45-Core Installed
[X] ASP.NET 4.7 NET-Framework-45-ASPNET Installed
这里也是一样。似乎是 DSC 目标正在重定向到 WSUS。
This article 描述了问题并进行了修复。切入正题,更新以下注册表项并重新启动。
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
Property: UseWUServer
Value: 0
或在 DSC 代码中:
Import-DscResource -ModuleName PSDesiredStateConfiguration
Registry Disable_WSUS {
Ensure = "Present"
Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"
ValueName = "UseWUServer"
ValueData = "0"
}
我也想在 setting the reboot flag and continue 上工作,但还没有弄清楚。