
在 Windows Server 2025 上使用 DISM 转换系统版本
在 Windows Server 2025 上使用 DISM 转换系统版本
1. 打开 PowerShell
在 Windows Server 2025 服务器上,使用以下步骤打开 PowerShell:
- 开始菜单 > 右键单击 > Windows PowerShell (管理员)
2. 查看 Edition ID
运行以下命令以获取当前系统的 Edition ID:
1 | DISM /online /Get-CurrentEdition |
示例:如果显示 Standard Evaluation
(标准版评估版本),则 Edition ID 是 ServerStandardEval
,去掉 Eval
后就是实际的 Edition ID。
3. 转换系统版本
使用以下命令将系统从 Evaluation 版转换为正式版:
1 | DISM /online /Set-Edition:XXXXXX /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula |
Set-Edition:
后跟第一步查询到的 Edition ID(去掉Eval
)。ProductKey:
后跟服务器操作系统的产品序列号。
示例命令
将 Windows Server 2025 从 Evaluation 版转换为正式版:
Windows Server 2025 标准版
1 | DISM /online /Set-Edition:ServerStandard /ProductKey:TVRH6-WHNXV-R9WG3-9XRFY-MY832 /AcceptEula |
Windows Server 2025 数据中心版
1 | DISM /online /Set-Edition:ServerDatacenter /ProductKey:D764K-2NDRG-47T6Q-P8T8W-YP6DF /AcceptEula |
4. 确认并重启
运行转换命令后,系统将提示输入 Y 以确认操作。选择 Y 并重启操作系统即可完成转换。
5. 支持跨版本转换
该方法支持跨版本操作,例如可以直接从 Standard
评估版转为 DataCenter
正式版。
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自Terry's Blog