@kralon @Sebastian-Roth
I force the windows 10 activation on Windows 10 Pro with a script like this Script. It’s Writed thinking in WindowsUpdate disabled.
It Works to me on all License Types, except LV’s that is not tested.
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
$arguments = "& '" + $myinvocation.mycommand.definition + "'"
Start-Process powershell -Verb runAs -ArgumentList $arguments
Break
}
# License
$serviceName = "wuauserv"
$hostinfoFile = "c:\nntt\hostinfo.txt" # this is the hostinfo file downloaded from the postdownload
$COAProductKeyPattern = "(?<=hostproductkey=).*"
$COAProductKey = Select-String -Path $hostinfoFile -Pattern $COAProductKeyPattern | ForEach-Object {$_.Matches.Value -Replace "'",""}
$BIOSProductKey = (get-wmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey.Trim()
Set-Service -Name $serviceName -StartupType Manual
Start-Sleep -s 5
Start-Service -InputObject $serviceName
(Get-Service -InputObject $serviceName).WaitForStatus('Running')
If ($BIOSProductKey) { Invoke-Expression -Command "changepk.exe /productkey $BIOSProductKey" }
ElseIf ($COAProductKey) { Invoke-Expression -Command "changepk.exe /productkey $COAProductKey" }
Invoke-Expression -Command "$env:SYSTEMROOT\System32\cscript.exe //B $env:SYSTEMROOT\system32\slmgr.vbs /ato"
Start-Sleep -s 10
Stop-Service -InputObject $serviceName
(Get-Service -InputObject $serviceName).WaitForStatus('Stopped')
Start-Sleep -s 5
Set-Service -Name $serviceName -StartupType Disabled
Start-Sleep -s 5
# End License