xpmgr
Command line interface for Windows XP license management, inspired by Microsoft's "slmgr".
Usage
You need to download the right version for your edition of Windows XP/2003!
In most cases, you'll need xpmgr_x86.exe.
If you have Windows XP Professional x64 Edition or a x64 version of Windows Server 2003, you need xpmgr_x64.exe.
If you have an Itanium version of Windows XP or Server 2003, Windows Product Activation is not on those editions, so there is no need for this tool.
If you're trying to manage products other than Windows, you need xpmgr_x86.exe, regardless of your architecture.
--GetProductID: Gets the product ID (ex: 76477-755-3803223-21229).
--SetProductKey or /ipk: Sets the product key (tested to work with dashes). If already activated, this should give an error instead.
--GetInstallationID or /dti: Gets an Installation ID with no dashes (ex: 253286028742154311079061239762245184619981623171292574). If already activated, this should give an error instead.
--SetConfirmationID or /atp: Sets a Confirmation ID (tested to work with dashes). If already activated, this should give an error instead. If successful, this also removes the "Activate Windows" shortcuts and kills the WPA notifier process (wpabaln.exe) if it's running.
--GetWPALeft: Gets the number of days before activation is required, in days. If already activated, this should give an error instead.
--GetEvalLeft: Gets the number of days before the evaluation period expires, in days. In non-evaluation copies of Windows, this should give an error instead.
--Office2003: This provides EXPERIMENTAL support for Office 2003. When this parameter is used, all other parameters except --GetInstallationID and --SetConfirmationID are disabled, and those two (attempt) to go what they do on Office 2003, rather than Windows.
--BypassInstallCheck: Disables the check to see if Office 2003 is installed. Intended for debugging purposes only. If it doesn't work without this enabled, it probably won't work with it either.
--GetUsage: Outputs all the commands you can use.
Releases
https://github.com/UMSKT/xpmgr/releases
Building
Make sure Visual Studio 2017 or later is installed (recommended, might not be needed). Then, install TDM-GCC. Then, use CMake to build:
cmake -S . -B build -G "MinGW Makefiles" -DCMAKE_CXX_COMPILER=C:/TDM-GCC-64/bin/g++.exe
cmake --build build --config Debug