On Tue, May 3, 2016 at 4:29 PM, Zeeshan Ali (Khattak) <zeeshanak@xxxxxxxxx> wrote: > On Tue, May 3, 2016 at 2:58 PM, Fabiano Fidêncio <fidencio@xxxxxxxxxx> wrote: >> I've noticed that when installing Windows 8.1 the activation is not done >> by the end of the unattended installation and, actually, the serial >> number shown in the Activate Windows program is different than the one >> used to perform the installation. Also, when tring to activate the >> software it fails with the "Windows can't be activate. Try again later" >> message and no useful details about the error. >> >> So, in order to avoid this issue, let's force the activation in the >> FirstLogon phase of the installation script. > > Thanks for the details but I find one important detail still missing: > How are you forcing the activation? cscript is included in Windows? Well, I didn't install anything in order to have cscript there. I found out that similar info in a forum and then made it work based on the Slmgr.vbs doc (that can be find here: https://technet.microsoft.com/en-us/library/dn502540.aspx) I'll add this info into the commit long and resend with the rest of the Windows 8.1 series. > >> >> Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx> >> --- >> data/install-script/microsoft.com/windows-unattend-desktop.xml.in | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/data/install-script/microsoft.com/windows-unattend-desktop.xml.in b/data/install-script/microsoft.com/windows-unattend-desktop.xml.in >> index 3ebbff7..e96a37a 100644 >> --- a/data/install-script/microsoft.com/windows-unattend-desktop.xml.in >> +++ b/data/install-script/microsoft.com/windows-unattend-desktop.xml.in >> @@ -251,6 +251,13 @@ >> <Description>Turn Off Network Selection pop-up</Description> >> <CommandLine>cmd /c reg add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine> >> </SynchronousCommand> >> + <xsl:if test="os/version = 6.3"> >> + <SynchronousCommand wcm:action="add"> >> + <Order>2</Order> >> + <Description>Force windows activation</Description> >> + <CommandLine>cmd /c cscript.exe slmgr.vbs /ipk <xsl:value-of select="config/reg-product-key"/> /atoi</CommandLine> >> + </SynchronousCommand> >> + </xsl:if> >> </FirstLogonCommands> >> </xsl:if> >> </component> >> -- >> 2.7.3 >> >> _______________________________________________ >> Libosinfo mailing list >> Libosinfo@xxxxxxxxxx >> https://www.redhat.com/mailman/listinfo/libosinfo > > > > -- > Regards, > > Zeeshan Ali (Khattak) > > _______________________________________________ > Libosinfo mailing list > Libosinfo@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/libosinfo -- Fabiano Fidêncio _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo