Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Help with XML file


  • Please log in to reply
6 replies to this topic

#1
nice_guy75

nice_guy75

    Advanced Member

  • Member
  • PipPipPip
  • 400 posts
  • Joined 07-December 09
Hi guys,
I have prepared my Autounattend.xml following this link: http://technet.micro...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.

Attached Files




How to remove advertisement from MSFN

#2
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,515 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
@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.mydigital...e-on-reinstall/

Edited by myselfidem, 03 February 2010 - 02:15 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#3
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,031 posts
  • Joined 14-October 09
  • OS:Server 2012R2
  • Country: Country Flag
This is the error <Key>&lt;Product Key&gt;</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>&lt;Product Key&gt;</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>

To this.

<ProductKey>
<WillShowUI>Never</WillShowUI>
</ProductKey>

and report back.

#4
nice_guy75

nice_guy75

    Advanced Member

  • Member
  • PipPipPip
  • 400 posts
  • Joined 07-December 09

This is the error <Key>&lt;Product Key&gt;</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>&lt;Product Key&gt;</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, 03 February 2010 - 02:46 AM.


#5
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,515 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
@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, 03 February 2010 - 06:03 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#6
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,878 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
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
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#7
nice_guy75

nice_guy75

    Advanced Member

  • Member
  • PipPipPip
  • 400 posts
  • Joined 07-December 09

@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, 03 February 2010 - 07:30 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users