Jump to content

Help with XML file


Recommended Posts

Hi guys,

I have prepared my Autounattend.xml following this link: http://technet.microsoft.com/en-us/library...317(WS.10).aspx, but when I tried to install my customized OS it is giving some error saying product key is not right. I am getting it just after booting the system, it has also refering to xml file. I wish to install my OS without product key and as trial for 30 days. I am attaching my Autounattend.xml file here please go through it and suggest the neccessary changes.

Autounattend.xml

Link to comment
Share on other sites


@nice_guy75

Maybe, you can test this method and keep the activation of your copy.

First validate your copy of Windows 7.

After copy/paste the file "tokens.dat" in the folder SCRIPTS of your installation source.

And make a bath file nammed "active.bat"

active,bat

------------------------------------------------------

@echo off

:: Install the product key and keep activation

TAKEOWN /F %SystemDrive%\Windows\System32\cmd.exe

net stop sppsvc

DEL /Q "%SystemDrive%\Windows\ServiceProfiles\NetWorkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\Tokens.dat"

COPY /Y "%~dp0tokens.dat" "%SystemDrive%\Windows\ServiceProfiles\NetWorkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\"

net start sppsvc

cscript %systemroot%\System32\slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (key Windows 7)

cscript %systemroot%\System32\slmgr.vbs -dli

cscript %systemroot%\System32\slmgr.vbs -ato

EXIT

--------------------------------------------------------

In the SetupComplete.cmd, add

SetupComplete.cmd

---------------------------------------------------------

@echo off

start /WAIT %~dp0Active.bat

exit

--------------------------------------------------------

If you want hide the process of the batch, you can use this script

active.vbs

-----------------------------------------------------------

Set WshShell = WScript.CreateObject("WScript.Shell" )

WshShell.Run "%SystemRoot%\Setup\Scripts\activel.bat" ,SH_WIDE ,true

-----------------------------------------------------------

And put the key in Autounattend.xml

I have installed Windows 7 many times wihtout any problem.

You can find some help here:

http://www.mydigitallife.info/2009/09/24/h...e-on-reinstall/

Edited by myselfidem
Link to comment
Share on other sites

This is the error <Key><Product Key></Key> should look like this if you were trying to integrate a real key <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>

Either way you don't need that line, delete it and change this.

<ProductKey>

<Key><Product Key></Key>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

To this.

<ProductKey>

<WillShowUI>Never</WillShowUI>

</ProductKey>

and report back.

Link to comment
Share on other sites

This is the error <Key><Product Key></Key> should look like this if you were trying to integrate a real key <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>

Either way you don't need that line, delete it and change this.

<ProductKey>

<Key><Product Key></Key>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

To this.

<ProductKey>

<WillShowUI>Never</WillShowUI>

</ProductKey>

and report back.

So can I edit it manually, and save it?????????????????????

Edited by nice_guy75
Link to comment
Share on other sites

@nice_guy75

Maybe you can find some help here:

http://support.microsoft.com/kb/929828

---------------------------------------------------------------------------------

"Run the Slmgr.vbs script in an elevated Command Prompt window. For example,

run cscript

c:\windows\system32\slmgr.vbs –rearm.

Note Administrative credentials are required to run the Rearm process.

The Rearm process can be run a maximum of three times in a Windows Vista image.

---------------------------------------------------------------------------------

I think it is available for Windows 7.

You can try also, in an elevated Command Prompt window:

slmgr

And you can see all the options.

J have a french version, but you can see the options in yellow color.

See attachments.

J hope that will help you!

Edited by myselfidem
Link to comment
Share on other sites

@nice_guy75

Maybe you can find some help here:

http://support.microsoft.com/kb/929828

---------------------------------------------------------------------------------

"Run the Slmgr.vbs script in an elevated Command Prompt window. For example,

run cscript

c:\windows\system32\slmgr.vbs –rearm.

Note Administrative credentials are required to run the Rearm process.

The Rearm process can be run a maximum of three times in a Windows Vista image.

---------------------------------------------------------------------------------

I think it is available for Windows 7.

You can try also, in an elevated Command Prompt window:

slmgr

And you can see all the options.

J have a french version, but you can see the options in yellow color.

See attachments.

J hope that will help you!

Hey brother I guess you posted in the wrong thread, my sysprep problem is already solved. This thread is for Answer file. I would try to edit my answer file manually and would post the results.

yes the xml is nothing but a text file and can open with notepad

thats all you need what Mrjinje said if you want to go trial for 30 days

Thanks brother you guys are really great for newbies like me. I would try Mrjinje's method and would post the result soon.

Edited by nice_guy75
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...