Run the following command, replacing XXXXX-... with your actual key: slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
: Navigate to Start > Settings > System > Activation . Select Change product key , enter your 25-character key, and click Next followed by Activate . how to activate windows server 2022
: Click the Start button and select the Settings icon. Run the following command, replacing XXXXX-