Windows Server 2008 R2 标准版DISM命令升级到企业版

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\administrator>DISM /online /Get-CurrentEdition

部署映像服务和管理工具
版本: 6.1.7601.24499

映像版本: 6.1.7601.24499

当前版本为:

当前版本 : ServerStandard

操作成功完成。

C:\Users\administrator>DISM /online /Get-TargetEditions

部署映像服务和管理工具
版本: 6.1.7601.24499

映像版本: 6.1.7601.24499

可以升级的版本:

目标版本 : ServerDataCenter
目标版本 : ServerEnterprise

操作成功完成。

C:\Users\administrator>DISM /online /Set-Edition:ServerEnterprise /productk
ey:489J6-VHDMP-X63PK-3K798-CPX3Y

部署映像服务和管理工具
版本: 6.1.7601.24499

映像版本: 6.1.7601.24499

开始升级组件...
开始安装产品密钥...
产品密钥安装已完成。

正在删除程序包 Microsoft-Windows-ServerStandardEdition~31bf3856ad364e35~amd64~~6
.1.7601.17514
[==========================100.0%==========================]
组件升级已完成。

开始应用特定于版本的设置...
特定于版本的设置应用已完成。

操作成功完成。
重新启动 Windows 以完成该操作。
是否立即重新启动计算机(Y/N)?

 

Windows Server 2008 R2 introduces a new command-line utility, DISM, the Deployment Image Servicing and Management tool.    One of DISM’s many useful features is the ability to use its edition-servicing commands to upgrade an R2 installation without requiring install media.  This is functionally equivalent to Windows Anytime Upgrade in a Windows 7 client install, and can be performed on both an online or offline image, and on both full Server and Server Core installations.

 

Upgrades using the edition servicing method are quick, and don’t require a full reinstall of the operating system.  Deployed roles and features, and other characteristics (machine name, user and admin accounts, etc) are persisted forward.     Because the target editions are staged within the image, only the updates necessary to move from edition to the next are applied.

 

The upgrade options are limited to edition families, and are irreversible – you can’t downgrade once you’ve gone up an edition.  Additionally, you can’t move from full Server to Server Core (or vice versa).

 

The supported upgrade paths are:

 

·Windows Server 2008 R2 Standard -> Windows Server 2008 R2 Enterprise -> Windows Server 2008 R2 Datacenter

·Windows Server 2008 R2 Standard Server Core -> Windows Server 2008 R2 Enterprise Server Core -> Windows Server 2008 R2 Datacenter Server Core

·Windows Server 2008 R2 Foundation -> Windows Server 2008 R2 Standard

 

The tool essential for this process, DISM.exe, is included in every installation of Windows Server 2008 R2, and the general usage for online and offline use is documented on TechNet here:  http://technet.microsoft.com/en-us/library/dd744380(WS.10).aspx

 

One scenario that we sometimes use internally is the online upgrading of Hyper-V hosts.  If you decide that you want to move from Enterprise’s 4 VM limit to Datacenter’s support for an unlimited number of VMs, you can migrate the VMs to another host, upgrade the old host in less than thirty minutes, and then immediately migrate the VMs back once the process is complete.  There’s no need to take the whole server offline or rebuild from scratch.

 

The syntax for DISM is fairly straightforward.  From an elevated command prompt, you can query for the current edition, for possible target editions, and initiate the upgrade.  To upgrade, you need to provide a valid 25-character product key for the edition to which you’re upgrading.

 

 

To determine the installed edition, run:

 

DISM /online /Get-CurrentEdition

 

To check the possible target editions, run:

 

DISM /online /Get-TargetEditions

 

Finally, to initiate an upgrade, run:

 

DISM /online /Set-Edition:<edition ID> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

 

So, for example, to upgrade to Windows Server 2008 R2 Datacenter from a downlevel edition, you would run:

 

DISM /online /Set-Edition:ServerDatacenter /productkey:ABCDE-ABCDE-ABCDE-ABCDE-ABCDE

 

 

After running the /Set-Edition command, DISM will prepare the operating system for the edition servicing operation, then reboot twice while it applies the changes to the operating system.  After the final reboot, you’ll be running the new edition!  

 

UPDATE: One important note, as I'm reminded by Xaegr in the comments, is that the server can't be a DC at the time of upgrade.  If you demote a DC using dcpromo, you can upgrade, then re-promote it (you may need to migrate FSMO roles, etc, in order to succesfully demote.)

 

Definitely let me know if you have questions about particular details – we’re excited that this functionality is now available.

 

thanks,

Brendan

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值