How to: Add your license key to an Exchange Server 2007 or Exchange Server 2010 via de command line
You can easily add your license key via the GUI on Exchange Server, however, sometimes you need to do this via the terminal window. In order to do this you simply need to fun the following command :
set-exchangeserver -Identity ‘ServerName’ -ProductKey xxxx-xxxx-xxxx-xxxx-xxxx
Below is an example of what the GUI actually executes in order to accomplish this:
Summary: 1 item(s). 1 succeeded, 0 failed. Elapsed time: 00:00:12
Warning: The product key has been validated and the product ID has been successfully created. This change won’t take effect until the Information Store service has been restarted.
Exchange Management Shell command completed: set-exchangeserver -Identity ‘EXCHANGE-2010’ -ProductKey xxxx-xxxx-xxxx-xxxx-xxxx
Elapsed Time: 00:00:12