IPB

Google Frontpage Forums Unattended CD/DVD Guide
 Forum Rules Unattended CD/DVD Guide Homepage · MSFN Forum Rules
> Building a Pre-activated CD from an existing installation
Bezalel
post Dec 19 2005, 09:37 PM
Post #1


Senior Member
****

Group: Members
Posts: 588
Joined: 11-October 05
Member No.: 76348
OS: XP Pro x86
Country Flag


I've put together two files that can be used to make a pre-activated CD if all you got with your computer is a restore CD you will also need access to an OEM hologram CD for the rest of the files. Put the following files in the same folder

getfiles.bat
CODE
attrib -s %SystemRoot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\OEMBIOS.CAT
makecab %SystemRoot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\OEMBIOS.CAT
attrib +s %SystemRoot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\OEMBIOS.CAT
makecab %SystemRoot%\system32\OEMBIOS.BIN
makecab %SystemRoot%\system32\OEMBIOS.DAT
makecab %SystemRoot%\system32\OEMBIOS.SIG
cscript //nologo getkey.vbs > winnt.sif


getkey.vbs
CODE
Dim objFS, objShell
Dim strXPKey

Set objShell = CreateObject("WScript.Shell")

strXPKey = objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName")
If Len(strXPKey) > 0 Then
  WScript.Echo "[UserData]"
  WScript.Echo "ProductKey=" & chr(34) & GetKey(objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) & chr(34)
  WScript.Echo "[Data]"
  WScript.Echo "MSDosInitiated=0"
  WScript.Echo "UnattendedInstall=Yes"
End If

Function GetKey(rpk)
  Const rpkOffset=52:i=28
  szPossibleChars="BCDFGHJKMPQRTVWXY2346789"
  Do
    dwAccumulator=0 : j=14
    Do
      dwAccumulator=dwAccumulator*256
      dwAccumulator=rpk(j+rpkOffset)+dwAccumulator
      rpk(j+rpkOffset)=(dwAccumulator\24) and 255
      dwAccumulator=dwAccumulator Mod 24
      j=j-1
    Loop While j>=0
    i=i-1 : szProductKey=mid(szPossibleChars,dwAccumulator+1,1)&szProductKey
    if (((29-i) Mod 6)=0) and (i<>-1) then
      i=i-1 : szProductKey="-"&szProductKey
    End If
  Loop While i>=0
  GetKey=szProductKey
End Function


Getfiles.bat will generate 5 files to be placed in the i386 directory of your CD. the files are:
OEMBIOS.BI_
OEMBIOS.CA_
OEMBIOS.DA_
OEMBIOS.SI_
winnt.sif

This post has been edited by Bezalel: Mar 24 2006, 04:34 AM
Go to the top of the page
 
+Quote Post

Posts in this topic
- Bezalel   Building a Pre-activated CD from an existing installation   Dec 19 2005, 09:37 PM
- - trickytwista   hi, can you explain this with more detail? i have ...   Dec 27 2005, 06:21 AM
|- - Bezalel   QUOTE (trickytwista @ Dec 27 2005, 08:21 ...   Dec 27 2005, 11:52 AM
- - phatcat42141   Theres a problem with your theory cause the window...   Dec 27 2005, 11:18 AM
|- - Bezalel   QUOTE (phatcat42141 @ Dec 27 2005, 01:18 ...   Dec 27 2005, 11:42 AM
- - JDS300   So if I have a bunch of OEM machines(Dell, HP, Gat...   Dec 28 2005, 09:49 AM
|- - Bezalel   QUOTE (JDS300 @ Dec 28 2005, 11:49 AM) So...   Dec 28 2005, 12:28 PM
- - phatcat42141   QUOTE Windows Activation only checks the PID is th...   Dec 28 2005, 09:58 PM
- - KRYOGENIUS   Hello this method don't work anymore with XP ...   Jan 1 2006, 10:05 AM
- - Djé   Indeed, this Method DOES work with Windows XP sp1 ...   Feb 17 2006, 10:23 AM
- - Bezalel   Thanks for your clarification. When I wrote pre-ac...   Feb 17 2006, 01:51 PM
|- - mittern8   QUOTE (Bezalel @ Feb 17 2006, 09:51 PM) B...   May 20 2006, 01:21 AM
|- - Bezalel   QUOTE (mittern8 @ May 20 2006, 02:21 AM) ...   May 20 2006, 08:05 PM
- - maxXPsoft   Bezalel Thanks for getting me closer with that ...   Apr 30 2006, 05:01 PM
- - maxXPsoft   Ok done this on my MCE 2005 HP a1310n and went to ...   May 9 2006, 08:40 AM
- - jrf2027   Couple of quick questions... I'm going to nee...   May 9 2006, 04:00 PM
|- - Bezalel   QUOTE (jrf2027 @ May 9 2006, 05:00 PM) I ...   May 10 2006, 12:03 AM
- - maxXPsoft   I used an MCE 2 CD set that was not manufacturer s...   May 9 2006, 06:24 PM
- - Djé   I agree with maxXPsoft. 1. You only need the 4 fil...   May 9 2006, 06:57 PM
- - ner   @dj`e Very Interesting, I also have a toshiba...   May 10 2006, 03:38 AM
|- - Djé   QUOTE (ner @ May 10 2006, 10:38 AM) after...   May 10 2006, 06:46 AM
- - ner   @ Djé Many thanks, just one last question i also ...   May 10 2006, 06:57 AM
|- - MAVERICKS CHOICE   QUOTE (ner @ May 10 2006, 10:57 PM) @ Djé...   May 11 2006, 04:41 PM
- - Djé   you only need the win51 file and its siblings. Oth...   May 10 2006, 10:46 AM
- - ner   @ Djé - Many thanks for your help - I did not find...   May 10 2006, 11:39 AM
- - Djé   Be careful: I think you have to have a 'space...   May 10 2006, 12:26 PM
- - Batfinks   i have a little problem and wonder if this method ...   May 11 2006, 04:37 PM
|- - Djé   QUOTE (Batfinks @ May 12 2006, 12:37 AM) ...   May 11 2006, 07:52 PM
- - ner   @ MAVERICKS CHOICE Many thanks a much easier way,...   May 12 2006, 03:00 AM
- - maxXPsoft   QUOTE i have a little problem and wonder if this m...   May 12 2006, 03:14 AM
- - Tbone2   how about a sony recovery dvd's....most of the...   May 14 2006, 04:29 AM
|- - Bezalel   QUOTE (Tbone2 @ May 14 2006, 05:29 AM) ho...   May 18 2006, 08:58 PM
- - waves   Bezalel, In your multi-manufacturer cd, you do no...   May 23 2006, 08:03 AM
|- - Bezalel   QUOTE (waves @ May 23 2006, 09:03 AM) Bez...   May 23 2006, 05:56 PM
- - tcsdoc   I have an Emachines laptop. I'm one of those ...   May 24 2006, 10:30 AM
- - waves   If you do it the way tscdoc did, and enter the pro...   May 24 2006, 02:04 PM
|- - Bezalel   QUOTE (waves @ May 24 2006, 04:04 PM) If ...   May 24 2006, 04:19 PM
|- - nadav   QUOTE (Bezalel @ May 24 2006, 04:19 PM) I...   Sep 2 2006, 07:07 AM
|- - Bezalel   QUOTE (nadav @ Sep 2 2006, 08:07 AM) What...   Sep 2 2006, 11:11 PM
|- - severach   QUOTE (nadav @ Sep 2 2006, 08:07 AM) At w...   Sep 5 2006, 10:52 AM
- - waves   ok, so does this mean that there is no way to use ...   May 24 2006, 09:51 PM
- - bober   i wish i had read this thread several days ago. a ...   May 25 2006, 03:14 AM
- - Batfinks   sorry had net problems for awhile and had to have ...   May 28 2006, 04:47 PM
|- - Bezalel   QUOTE (Batfinks @ May 28 2006, 05:47 PM) ...   May 28 2006, 05:17 PM
- - Batfinks   oops sorry is there a topic which covers this? as...   May 28 2006, 05:51 PM
- - bober   thanks Bezalel. your technique works great on hp h...   May 29 2006, 09:59 AM
- - herroyuy   sorry... simple question after i get files using ...   Jun 15 2006, 02:24 AM
|- - Bezalel   QUOTE (herroyuy @ Jun 15 2006, 03:24 AM) ...   Jun 15 2006, 09:07 AM
- - chickenfeed   QUOTE If your laptop was mande by a Royalty OEM (t...   Jun 15 2006, 02:58 AM
- - ZaForD   @ chickenfeed, I'm kinda new here, but i...   Jun 15 2006, 05:32 AM
- - herroyuy   hmm.. thanks alot for ur reply .. i just wanna mak...   Jun 15 2006, 06:41 AM
- - ZaForD   herroyuy Try using the i386 folder from an OEM di...   Jun 15 2006, 06:50 AM
- - herroyuy   thanks fro ur advice.. yeah.. i stick back to the ...   Jun 15 2006, 07:00 AM
- - chickenfeed   @ ZaForD ahhhhhhhhhhhhhhhhhh I see now. so the ba...   Jun 15 2006, 08:59 AM
- - ZaForD   @ chickenfeed, I'd much rather have all these...   Jun 15 2006, 10:29 AM
|- - chickenfeed   QUOTE (ZaForD @ Jun 15 2006, 10:29 AM) @ ...   Jun 15 2006, 04:48 PM
- - Bezalel   If anyone wants to rewrite the tutorial PM me and ...   Jun 15 2006, 10:34 AM
- - gunsmokingman   I have modified this getkey.vbs so it now adds the...   Jun 15 2006, 12:42 PM
|- - MAVERICKS CHOICE   QUOTE (gunsmokingman @ Jun 16 2006, 04:42...   Jun 16 2006, 05:14 AM
|- - tkmadison   QUOTE (gunsmokingman @ Jun 15 2006, 12:42...   Jan 3 2007, 10:57 PM
- - herroyuy   ok i've tried it's simply just use the ba...   Jun 15 2006, 06:40 PM
- - gunsmokingman   Thanks you MAVERICKS CHOICE for the nice words Her...   Jun 16 2006, 01:13 PM
- - severach   You lose any bundled OEM drivers when you build yo...   Jul 25 2006, 03:33 PM
- - MAVERICKS CHOICE   Interesting tool you produced there GSM, you never...   Jul 25 2006, 05:05 PM
|- - gunsmokingman   QUOTE (MAVERICKS CHOICE @ Jul 26 2006, 12...   Jul 26 2006, 12:04 PM
- - maxXPsoft   ? anyone Tried GSM tool and it add's this odd ...   Jul 29 2006, 06:23 AM
- - valerian_cafe   new to this forums, I have an HP Pavlion Media m74...   Aug 8 2006, 08:27 AM
- - lil nublet   Instead of activating, can you just remove activat...   Aug 8 2006, 12:11 PM
|- - Bezalel   QUOTE (lil nublet @ Aug 8 2006, 02:11 PM)...   Aug 8 2006, 01:29 PM
- - tkmadison   Here's the problem with my system. It's ru...   Aug 13 2006, 05:18 PM
|- - Bezalel   QUOTE (tkmadison @ Aug 13 2006, 06:18 PM)...   Aug 13 2006, 06:28 PM
- - Tbone2   Bezalel YOUR THE MAN.... It worked great for my ...   Aug 18 2006, 08:56 PM
- - canadianfigor   I followed this method for my Sony VAIO and upon i...   Aug 21 2006, 11:33 AM
|- - discountpc   QUOTE (canadianfigor @ Aug 21 2006, 12:33...   Aug 21 2006, 11:05 PM
- - Randy Rhoads   QUOTE I also noticed that in the title bar of the ...   Aug 21 2006, 09:27 PM
- - canadianfigor   QUOTE (Randy Rhoads @ Aug 21 2006, 11:27 ...   Aug 22 2006, 07:22 AM
- - jowaju   You are the man, just want you to know that. Been ...   Sep 20 2006, 09:06 AM
- - r0sWell   I have a Dell laptop with WinXP MCE 2005. I have t...   Sep 27 2006, 03:19 AM
- - FreeStyler   QUOTE (r0sWell @ Sep 27 2006, 10:19 AM) I...   Sep 27 2006, 10:41 AM
- - dEEPSPY   Hey ive read almost every post in this topic, but ...   Oct 18 2006, 10:24 AM
|- - Bezalel   QUOTE (dEEPSPY @ Oct 18 2006, 11:24 AM) H...   Oct 18 2006, 12:24 PM
|- - dEEPSPY   QUOTE (Bezalel @ Oct 18 2006, 01:24 PM) T...   Oct 18 2006, 12:42 PM
|- - severach   >My main concern is the pre-activation To get ...   Oct 18 2006, 02:54 PM
- - Moeders   Hi ppl i've read the reply's in this topic...   Nov 6 2006, 01:34 PM
|- - Bezalel   QUOTE (Moeders @ Nov 6 2006, 02:34 PM) Hi...   Nov 6 2006, 03:20 PM
- - Moeders   i noticed i did use the 717bef set and i have a ac...   Nov 6 2006, 03:23 PM
|- - Bezalel   QUOTE (Moeders @ Nov 6 2006, 04:23 PM) i ...   Nov 6 2006, 03:31 PM
- - matthestar   Hi guys. The hd on my mates laptop has failed and...   Dec 15 2006, 01:08 PM
|- - Bezalel   QUOTE (matthestar @ Dec 15 2006, 02:08 PM...   Dec 18 2006, 09:14 AM
|- - matthestar   QUOTE (Bezalel @ Dec 18 2006, 03:14 PM) Q...   Jan 5 2007, 01:21 PM
- - gunsmokingman   It seemed to have dissapear for a bit, I then re u...   Jan 4 2007, 01:54 AM
- - cumminbk   Alright guys i have genuine windows which like us ...   Jan 4 2007, 09:56 PM
- - darcham   I had no problem with Dell OEM CD (Win XP), I used...   Jan 11 2007, 09:24 PM
|- - Bezalel   QUOTE (darcham @ Jan 11 2007, 10:24 PM) I...   Jan 25 2007, 07:03 PM
- - NickSewell   i managed to create a pre-activated disk for my la...   Jan 27 2007, 09:17 PM
|- - severach   Sounds like your laptop has a touch screen and you...   Jan 27 2007, 09:51 PM
- - NickSewell   its not mce or tabletpc which is what confused me....   Jan 28 2007, 01:30 PM
|- - Bezalel   QUOTE (NickSewell @ Jan 28 2007, 02:30 PM...   Jan 28 2007, 04:29 PM
- - eDOC   Hello every one, I apologize for my ignorance ab...   Feb 21 2007, 12:58 PM
- - eDOC   To add: I have the 7 GB EISA Recovery partition c...   Feb 21 2007, 01:14 PM
2 Pages V   1 2 >


Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 22nd November 2009 - 12:23 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy