To activate Windows Server 2016 offline, you need to have a valid product key. Once you have the product key, follow these steps:
1. Open an elevated command prompt.
2. Type the following command, and then press Enter:
slmgr.vbs -ipk
3. Type the following command, and then press Enter:
slmgr.vbs -ato
4. Reboot the server.