# Activating a Windows Server 2012 licence

Source: <https://beta.dedicated.com.tr/en/kb/windows-server-2012-licence-activation>  
Last updated: 2026-11-28

You can activate your Windows Server 2012 licence from PowerShell with these commands.

1. Remove the current product key:

   ```powershell
   slmgr -upk
   ```

2. Install your new product key (replace `XXXXX-XXXXX-XXXXX-XXXXX-XXXXX` with your own key):

   ```powershell
   slmgr -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
   ```
