Documentation
Introduction

When you receive your purchased Microsoft Windows Server 2012 r2 Appliance, there are a few steps you need to perform to activate it. There are two options you can select from:

  • There is a batch script located in your D:\MFCApp_Bin\Extras\2012Server\Convert_Eval_Product_2012StandardServer.bat that you may run.
  • The Second option is to download it from Confluence Link.

If you don't want to use the SecureAuth script, see Converting a current evaluation version to a current retail version from Technet's article Upgrade Options for Windows Server 2012 R2 to perform the upgrade manually.

Purpose

This script automates the processes related to converting your Evaluation Key of Windows Server 2012 r2 to Full Retail Version.

Requirements
  • Before you can perform this procedure, obtain a Product Key Code.

Upgrading is Performed Online Only

For customers who want to use the SecureAuth Appliance offline, you must connect to the internet to upgrade your evaluation license to a production license. Once the upgrade is complete, close the ports to use the appliance offline.

Converting the Eval Script

Terms of Use (the "TERMS")

ACCEPTANCE OF TERMS: This batch file is provided "as is" with no express or implied warranty. SecureAuth Corporation accepts no responsibility or liability under any circumstances for any loss or damage of any kind incurred as a result of its use. You hereby agree that SecureAuth Corporation cannot be held liable in any way for any loss related to its use. You agree that you must evaluate, and bear all risks associated with the use of this batch file including any reliance, completeness, or usefulness. If you do not agree to these terms, do not proceed.


To run the Convert_Eval_Product_2012StandardServer.bat script
  1. On your SecureAuth Appliance, navigate to D:\MFCApp_Bin\Extras\2012 Server to locate the script.
     
  2. Double-click on the file to execute script:
    • Convert_Eval_Product_2012StandardServer.bat

      Convert_Eval_Product_2012StandardServer
      @echo off
      CLS 
      ECHO.
      ECHO =============================
      ECHO Running Admin shell
      ECHO =============================
      :checkPrivileges 
      NET FILE 1>NUL 2>NUL
      if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges ) 
      :getPrivileges 
      ECHO. 
      ECHO **************************************
      ECHO Invoking UAC for Privilege Escalation 
      ECHO **************************************
      ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs" 
      ECHO UAC.ShellExecute %0, "", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs" 
      "%temp%\OEgetPrivileges.vbs" 
      exit /B 
      :gotPrivileges 
      ::::::::::::::::::::::::::::
      :START
      ::::::::::::::::::::::::::::
      setlocal & pushd .
      REM
      :TOF
      echo Please enter the product key provided to you at the time of purchase.
      echo Be sure there are no additional spaces before or after.
      echo. 
      echo This key is used in the conversion process. The product key will have
      echo to be entered again at the time of activation.
      set /p prodkey= (xxxxx-xxxxx-xxxxx-xxxxx-xxxxx): 
      echo.
      if (%prodkey%)==() goto tof
      if not (%prodkey%)==() goto prdkeyfnd
      :prdkeyfnd
      echo  The following product key was entered. please verify this is correct.
      echo  %prodkey%
      echo.
      echo.
      set /p isthiscorrect=Is this product key correct? (yes, no, exit) 
      if (%isthiscorrect%)==() goto prdkeyfnd
      if /i (%isthiscorrect%)==(y) goto convert
      if /i (%isthiscorrect%)==(yes) goto convert
      if /i (%isthiscorrect%)==(n) goto tof
      if /i (%isthiscorrect%)==(no) goto tof
      if /i (%isthiscorrect%)==(exit) goto eof
      if not (%isthiscorrect%)==() goto prdkeyfnd
      :convert
      cls
      echo.
      echo When conversion is complete the system will have to be restarted two (2) times.
      timeout.exe 1
      echo.
      echo Please enter "Y" to restart the system when prompted. 
      echo There are a series of cleanup steps which will occur. 
      echo When you are presented with the log on prompt, log on 
      echo and restart the system again.
      echo.
      echo The Restarts are required for all changes to take effect.
      echo.
      echo The process of conversion and cleanup can take between 10 and 45 minutes.
      echo Allow the RESTART process to complete each time. 
      echo.
      echo After both restarts have completed, please activate via the standard activation methods.
      echo You will need to enter your product key for activation. 
      timeout.exe 20
      dism /online /set-edition:serverstandard /productkey:%prodkey% /accepteula
      timeout.exe 2
      goto eof
      :eof
  3. Copy and paste your Product Key Code into the command prompt and press ENTER.

  4. Enter Yes and press ENTER when asked to verify that this is your product key. 
    A 20-second countdown begins. 
     
  5. (Optional) Press any key to interrupt the countdown and continue. 
    Your server automatically restarts.

  6. Once the computer restarts, completely shut down the computer for a cold boot. 
    The cold boot initiates a clean-up of the server. This takes between 15-45 minutes.

  7. Access the Server Manager once the computer has restarted.
     
  8. Select Product ID and enter in your Product KEY once more if required.   Your Server should now be Activated
Resources

If you are not sure which product key is being used on a server, you can use third-party tools to verify which product key is currently installed. We use NirSoft's ProduKey. Instructions are included for your convenience.

To use the ProduKey Tool
  1. Download the ProduKey Tool from the NirSoft website.
     
  2. Click the produckey_setup to install the tool.

    Once the ProduKey is installed, it automatically opens to display the product keys you are using.

 

Troubleshooting
Internet Connection Issues

Issue: Not connected to the Internet.

Solution: Verify that ports 80 and 443 are open. See Ports that are Used by Windows Product Activation.

Product Key is not Valid

Issue: The product key is not recognized

Solutions: 

  • Check the product key and remove extra spaces and special characters.
  • Ensure that you applied the product key using the Convert_Eval_Product_2012StandardServer.bat script included in this article.
  • Contact Support to verify the product key.