Simple Script to apply Exchange Product Keys

If you need a quick way to apply the product key to Exchange – save the following into a PS1 file, and then via the Exchange management shell run the scritp file.

$ComputerName = gwmi Win32_ComputerSystem | Select Name
$File = Get-Content "s:\Scripts\keys.txt"
Foreach($entry in $File){
 Set-ExchangeServer -Identity $ComputerName.Name -ProductKey $entry
}
You can modify the $file variable to match a shared location so that you can centrally store the product keys to Exchange and apply them very quickly after installation.

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top