[Libosinfo] [PATCH] win8.1,installer: Force Windows Activation

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Tue May 3 14:29:26 UTC 2016


On Tue, May 3, 2016 at 2:58 PM, Fabiano Fidêncio <fidencio at redhat.com> 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?

>
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
> ---
>  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 at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo



-- 
Regards,

Zeeshan Ali (Khattak)




More information about the Libosinfo mailing list