These issues can stem from a corrupted licensing state or problems with the Software Protection service that weren't resolved by the in-place upgrade. Here are some workaround to try:
1. Rebuild the Activation Tokens File
A corrupt tokens.dat file can prevent activation. Rebuilding it forces Windows to create a new one.
Open an elevated Command Prompt or PowerShell.
Run the following commands in order, pressing Enter after each one:
net stop sppsvc
cd C:\Windows\System32\spp\store\2.0ren tokens.dat tokens.bar
net start sppsvc
slmgr /rilc
Once it has rebooted, try to install your product key and activate again using the slmgr /ipk and slmgr /ato commands.
2. Check the Software Protection Platform Service
- Ensure the Software Protection Platform service is running correctly.
- Press Win + R, type services.msc, and press Enter.
- Locate the Software Protection service in the list.
- Check that its status is Running and its startup type is set to Automatic (Delayed Start). If not, please change it and start the service.
If after trying all of these advanced steps the activation still fails, the issue might be related to the specific ISO you used for the in-place upgrade.
In that scenario, the most reliable solution would be a clean installation of Windows Server 2022 using the non-evaluation media, followed by restoring your data from a backup.