Windows Server 2025

Nguyễn Hoàng Lâm 0 Reputation points
2026-06-27T05:20:18.2+00:00

Dear Team,

I have a problem, my windows server 2025 is std eval version.

I know how to change it if i use DISM.

But big problem is i was to installed AD DS.

Can i still use DISM for change the version? I cant add my key.

Windows for business | Windows Server | Devices and deployment | Licensing and activation
0 comments No comments

1 answer

Sort by: Most helpful
  1. Domic Vo 25,675 Reputation points Independent Advisor
    2026-06-27T07:10:40.83+00:00

    Hello Nguyễn Hoàng Lâm,

    You are encountering a strict, by-design limitation within Windows Server. Microsoft intentionally blocks the Deployment Image Servicing and Management utility from changing an operating system edition while the server is actively hosting the Active Directory Domain Services role. If you attempt the conversion, the system will safely abort the process and return Error 50, indicating that the command is not supported while the role is active. This restriction exists because the Active Directory database, located at C:\Windows\NTDS\ntds.dit, is deeply integrated into the operating system's foundational state. Attempting an in-place license conversion while this database is live risks catastrophic corruption of your domain architecture.

    To resolve this and apply your retail key, you must demote the server to a standard member server using Server Manager or the standard uninstallation cmdlets. Once the server reboots and the domain controller restriction is cleared from the system registry and servicing stack, you can safely open an elevated Command Prompt and execute your conversion. You will use the standard syntax DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula to legally modify the system's servicing state and apply your new key.

    After the command completes and the server restarts to finalize the transition to the full retail version, your operating system will be fully activated. You can then safely reinstall the Active Directory Domain Services role and promote the server back to a Domain Controller, fully restoring your network infrastructure without compromising database integrity.

    Domic

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.