How-to – Enter product key to multiple servers


When Exchange Server 2010 is first installed it runs as a 120 day time-limited trial.  Within that first 120 days, or preferably before you put the server into production, you must enter a product key to remove the server from trial status.

For multiple servers in the organization this can be achieved using the Exchange Management Shell.  First identify which servers are currently in trial mode.

[PS] C:\>Get-ExchangeServer | where {$_.IsExchange2007TrialEdition -eq "True"}

Name                Site                 ServerRole  Edition     AdminDisplayVersion
----                ----                 ----------  -------     -------------------
EX1                 exchangeserverpro... Mailbox,... Standard... Version 14.0 (Bu...

To enter the product key use the Set-ExchangeServer cmdlet with the -ProductKey switch.

[PS] C:\>$trialservers = Get-ExchangeServer | where {$_.IsExchange2007TrialEdition -eq "True"}

[PS] C:\>$trialservers | Set-ExchangeServer -ProductKey 12345-12345-12345-12345-12345
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.

Restart the Information Store on the servers and they are no longer in trial mode.

[PS] C:\>Get-ExchangeServer | fl name,*trial*

Name                              : EX1
IsExchange2007TrialEdition        : False
IsExpiredExchange2007TrialEdition : False
RemainingTrialPeriod              : 00:00:00

[This is a rivisited page. Original source page]