• ARTICLES
SEARCH

How-To Geek

How to Seamlessly Extend the Windows Server Trial to 240 Days

image

The Microsoft evaluation releases of their products are incredibly valuable and useful tools as they allow you to have an unlimited number of test, demo and development environments to work with at no cost. The only catch is evaluation releases are time limited, so the more time you can squeeze out of them, the more useful they can be.

Here we are going to show you how to extend the usage time of the Windows Server 2008 R2 evaluation release to its maximum.

How it Works

Once activated the Windows Server 2008 R2 evaluation (or trial) lasts for 180 days, after which you must either enter a valid license key or the server will shut itself down after one hour of use.

With most every Microsoft product which requires activation, there is a grace period of several days in which the product can be used (unrestricted) before activation is required. In the case of Windows Server 2008 R2 evaluation, this grace period is 10 days which can be reset (or re-armed) 5 times before activation is required. When fully utilized, gives an extra 60 days of usage time.

To put your mind at ease, this practice is completely legal and actually promoted by Microsoft. We are simply approaching this with an automated “set it and forget” it process.

 

Rearming the Grace Period

Our first task, “Reset Activation Timer” takes advantage of all 5 of each of the 10 day grace periods. Each instance of this task is a one time, date specific call. The first call should be set to 10 days from the first system boot with each subsequent call set 10 days after the previous one.

Note: We have included tools to calculate this information for you which we discuss later in the article.

image

The actual command is a call to the “slmgr.vbs” script with the -rearm parameter followed by a system reboot.

image

The result is the task will reset the number of days left for activation…

Note: The screenshot below shows 8, but in practice the countdown would reach 0.

image

…back to 10.

image

 

Activating the Server

Once we have used up all the reset/rearm commands, we have to actually activate the server. This is done in the “Activate Server” task.

This task should be set 10 days from the last call to the “Reset Activation Timer” task.

image

The actual command again calls the “slmgr.vbs” script but with the -ato parameter (which performs the activation) followed by a reboot.

image

The end result is the 180 day time limited server activation.

image

 

Importing the Scheduled Tasks

While you can create the appropriate scheduled tasks manually, for your convenience we have included the tasks in importable XML format (see the links section at the bottom).

To import these, simply open Task Scheduler, right click on the Task Scheduler Library item and select Import Task.

image

Browse to the extracted Tasks folder and select one.

Once selected for import, you will need to change the account the task runs as to be consistent with your server. In the Create Task dialog (which opens after picking a task to import), click the Change User or Group button.

image

Enter “administrator” and click Check Names followed by OK.

image

You should see the Administrator account respective to your machine as the effective account.

image

When you apply the settings of the task, you will be prompted for the Administrator password.

image

Repeat these steps for each of the XML task files.

 

Configuring the Scheduled Tasks

Setting the Dates

The most notable change you will need to make is to update the respective dates of the scheduled tasks. To make this easy, we have included a tool as part of our download package which will calculate the exact dates for each task. Simply run ActivationDates_RunMe.bat from the extracted zip file and you will see output like the sample below.

Update the dates of the respective scheduled task accordingly to maximize the usage time.

image

Expiration Warning Emails

After 240 days, the server activation will expire. While you can view the time remaining by logging into the server, after 8 months it can be easy to forget to do this. So to automate the process of reminding you of the impending expiration, we have included a scheduled task which will automatically warn you via a daily email as the expiration approaches.

image

In order for this to work, however, you must have Blat (a command line email tool) configured on your system.

The configuration is simple, just download Blat and extract it to your C:\Windows directory (or another location set in your PATH variable) and from the command line, set the send properties:

BLAT -install <email server> <sender email address>

For example, to configure Blat to send email through the server “smtp.myemail.com” using the email “notify@myemail.com“, the command would look like this:

BLAT -install smtp.myemail.com notify@myemail.com

Once Blat is configured, under the Actions tab the task, edit the action.

image

Under the Add arguments line, scroll to the end and update the value following the -to parameter to the email address the warnings should be sent to. Additionally, if you want to edit the message body and/or subject of the resulting email, you can do that here as well.

image

Once you apply your settings, you can test the email task by viewing the main Scheduled Task Library, right-clicking on the email warning task and selecting Run.

image

If everything is working, you should receive an email at the address you specified earlier.

image

Again, by default, this action will run daily starting 10 days before the server expires.

 

 

Links

Download Server Activation Tools from How-To Geek (includes Scheduled Task XML files and date calculation tools)

Download Windows Server 2008 R2 Evaluation from Microsoft

Download Blat Command Line Email Tool

Jason Faulkner is a developer and IT professional who never has a hot cup of coffee far away. Interact with him on Google+

  • Published 03/20/12

Comments (8)

  1. John M. Keller (ITBeast)

    Nice Guide Jason, This will diffently get the max usage out of the evaluation of 2008 R2. I did a similar guide over at UWHS about 6 months back for Windows Home Server 2011 and Small Business 2011 Essentials (Non Evaluations)…

    http://usingwindowshomeserver.com/2011/08/10/extending-the-activation-grace-period-in-whs-2011-and-sbs-2011-essentials/

    I wish I had known about the Server Activation Tools, would have made the scripting a little bit easier for me but all the in house tools worked.

  2. Jason Faulkner

    @John M. Keller – I found that the MS provided scheduled task for rearming didn’t work out the box. What holds it up indefinitely is the message box prompt _unless_ you are using CScript as your default script engine (which you may not be).
    This is why I wrap the command in the “cmd /c start” so a separate process will be launched and not interfere with the reboot regardless of your script engine.

    Other than that, you just have to be sure to set your dates such that they always extend the grace period to the maximum. A perfect task to be automated.

  3. John M. Keller (ITBeast)

    Agreed, It did take alot of retooling to get it to work. However your process is alot more streamlined, automated, and what I like the most is the e-mail reminder built into your method. Again Great Job!

  4. r

    Win 2008 r2 is an excellent server os. I use Active Directory every day in my work & there is always something new to discover & learn.

  5. Jason Faulkner

    @John M. Keller – Thanks. I would imagine you will be able to use a similar method for future OS releases.

  6. Sabrina

    Good to know about the How to Seamlessly Extend the Windows Server Trial to 240 Days

  7. John M. Keller (ITBeast)

    @Jason Faulkner – Yes I will. I would also like to mention and reference your article at UWHS as to a more stremlined and automated alternative in extending the evaluation periods of Windows Home Server 2011 and Microsoft newest line of Small Business Servers like Essential and Standard. As you probably already know they are all based off of the Windows Server 2008 R2 Code and Home/Small Business’s might find great value in this article.

  8. jackson

    Good to know about the How to Seamlessly Extend the Windows Server Trial to 240 Days.

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!