如何离线安装 VirtualMachinePlatform
如何离线安装 VirtualMachinePlatform
下载 Windows 11 24H2 镜像文件
访问微软官方下载页面获取最新版 Windows 11 24H2 简体中文镜像:
https://www.microsoft.com/zh-cn/software-download/windows11
提取 ISO 文件中的关键目录
使用解压工具或虚拟光驱打开下载的 Win11_24H2_Chinese_Simplified_x64.iso
文件,将 sources
文件夹完整复制到 D:\
根目录下。
启用虚拟机平台功能
以管理员身份运行命令提示符(CMD),执行以下命令:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /source:D:\sources\sxs /norestart
注意事项
- 确保系统盘有足够空间
- 操作完成后建议重启系统使配置生效
sources
目录路径需与命令中的路径严格一致1.下载 Win11_24H2_Chinese_Simplified_x64.iso
https://www.microsoft.com/zh-cn/software-download/windows11
2.将ISO 内的sources 放在D根目录
3.dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /source:D:\sources\sxs /norestart