Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


windows:server_os:activate_core

Activate Windows Server Core using CMD or PowerShell

slmgr.vbs -ipk <WINDOWS_SERIAL_NUMBER>
slmgr.vbs -ato
$computer = gc env:computername
$key = "AAAAA-BBBBB-CCCCC-DDDDD-EEEEE"
$service = Get-WmiObject -Query "select * from SoftwareLicensingService" -ComputerName $computer
$service.InstallProductKey($key)
$service.RefreshLicenseStatus()

Discussion

Enter your comment:
B T Z W V
 
windows/server_os/activate_core.txt · Last modified: 2019/10/31 09:06 (external edit)