How to activate Windows XP using an Unattend.txt file

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q291997
This article has been archived. It is offered "as is" and will no longer be updated.
This article describes how to activate Microsoft Windows XP using an unattended installation.

Note Before the automatic activation of Windows XP can occur, you must first establish an Internet connection.
To activate Windows XP by using an unattended installation, add the following information to the Unattend.txt file:
  • In the Unattended section, type:
    AutoActivate = Yes
  • Under the UserData section, type:
    ProductID = yourProductID
    (Your Product ID is located on the Certificate of Authenticity (COA) sticker.)

    Note Every Windows XP retail installation must have a unique Product ID for activation.
If the Internet connection is through a proxy server, specify the proxy settings in the Unattend.txt file:
  • In the Unattended section, type:
  • Type your computer's proxy settings in the Proxy section.
For information about how to customize unattended installations, visit the following Microsoft Web site:
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
291983 Ports used by Windows Product Activation
155197 Unattended Setup parameters for Unattend.txt File

Article ID: 291997 - Last Review: 12/06/2015 01:20:04 - Revision: 2.6

Microsoft Windows XP Home Edition, Microsoft Windows XP Professional

  • kbnosurvey kbarchive kbenv kbhowto kbsetup KB291997