How to activate Windows XP using an Unattend.txt file

Article translations Article translations
Article ID: 291997 - View products that this article applies to.
This article was previously published under Q291997
Expand all | Collapse all


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: July 25, 2007 - Revision: 2.6
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
kbenv kbhowto kbsetup KB291997

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from