Windows 10 Windows 10脱机安装功能和开发人员模式

Windows 10 Windows 10脱机安装功能和开发人员模式,windows-10,.net-3.5,windows-subsystem-for-linux,legacy,missing-features,Windows 10,.net 3.5,Windows Subsystem For Linux,Legacy,Missing Features,我需要在Windows 10(Home/Pro x64 1909)上安装Windows的脱机功能,如“LegacyComponents”、“DirectPlay”、“.NET Framework 3.5”、“Windows子系统Linux”和“开发者模式” 在线,它可以很好地与之配合(显然是以管理员身份运行): 但离线时,我无法获取软件包。因此,我尝试升级脱机映像,以便在“/sources/sxs”这样的文件夹中查找包 我打开了Windows 10的“.iso”映像。该命令给出了“Pro”安装的

我需要在Windows 10(Home/Pro x64 1909)上安装Windows的脱机功能,如“LegacyComponents”、“DirectPlay”、“.NET Framework 3.5”、“Windows子系统Linux”和“开发者模式”

在线,它可以很好地与之配合(显然是以管理员身份运行):

但离线时,我无法获取软件包。因此,我尝试升级脱机映像,以便在“/sources/sxs”这样的文件夹中查找包

我打开了Windows 10的“.iso”映像。该命令给出了“Pro”安装的编号=6

dism /get-imageinfo /imagefile:"%cd%\Windows 10 x64\sources\install.wim"
我挂载图像

if not exist "C:\test\offline" mkdir "C:\test\offline"
dism /mount-image /imagefile:"%cd%\Windows 10 x64\sources\install.wim" /index:6 /mountdir:"C:\test\offline"
在这之前,它是有效的。但就在那之后,开发者模式失败了

dism /image:"C:\test\offline" /add-capability /capabilityname:Tools.DeveloperMode.Core~~~~0.0.1.0 /logpath:"%~dpn0.log"
错误:0x800f081f找不到源文件。 使用“源”选项指定恢复功能所需文件的位置。有关指定源位置的详细信息,请参见

之后,.NETFramework 3.5也失败了,错误代码相同

dism /image:C:\test\offline /enable-feature /featurename:NetFx3 /logpath:"%~dpn0.log"
否则,LegacyComponent、DirectPlay和Linux可以正常工作

dism /image:C:\test\offline /enable-feature /featurename:LegacyComponents
dism /image:C:\test\offline /enable-feature /featurename:DirectPlay
dism /image:C:\test\offline /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux
之后,我卸载了映像,但找不到下载的包

dism /unmount-image /mountdir:"C:\test\offline" /commit
我的愿望是获得“.cab”软件包,并能够使用这样的脚本安装它们:

cls
@echo off
cd /d "%~dp0"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /v "AllowDevelopmentWithoutDevLicense" /d "1" /f >nul
dism /online /add-capability /capabilityname:Tools.DeveloperMode.Core~~~~0.0.1.0 /limitaccess /source:"%cd%\Packages" /logpath:"%~dpn0.log" /norestart
dism /online /enable-feature /featurename:NetFx3           /limitaccess /source:"%cd%\Packages" /logpath:"%~dpn0.log" /norestart
dism /online /enable-feature /featurename:LegacyComponents /limitaccess /source:"%cd%\Packages" /logpath:"%~dpn0.log" /norestart
dism /online /enable-feature /featurename:DirectPlay       /limitaccess /source:"%cd%\Packages" /logpath:"%~dpn0.log" /norestart
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /limitaccess /source:"%cd%\Packages" /logpath:"%~dpn0.log" /norestart

echo.
timeout 5
del /f /q "%~dpn0.log"
你能帮帮我吗


致以最诚挚的问候,

我想你已经找到了解决方案,因为这是一篇老文章。我会把它写下来,以防有人在找它

您需要下载Windows 10 ISO文件(此文件需要Visual Studio订阅),然后提取以下软件包:

Microsoft-OneCore-DeveloperMode-Desktop-Package~31bf3856ad364e35~amd64~~.cab
Microsoft-WebDriver-Package~31bf3856ad364e35~amd64~~.cab
在安装软件包之前,通过将以下DWORD键设置为1来启用开发人员模式:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowDevelopmentWithoutDevLicense
可以使用以下命令安装软件包:

dism /online /add-capability /capabilityname:Tools.DeveloperMode.Core~~~~0.0.1.0 /limitaccess /source:"C:\path\to\folder" /norestart
我已经在一台加入域的计算机上测试了这一点,但没有访问Windows Update的权限

(WSUS服务器通过GPO配置,双扫描被禁用)。

非常感谢;)我没有发现,否则我会把它贴在这里。。。
dism /online /add-capability /capabilityname:Tools.DeveloperMode.Core~~~~0.0.1.0 /limitaccess /source:"C:\path\to\folder" /norestart