Make Win 8.1 AIO with general data.dat & token.dat files copied into WMC

Discussion in 'Windows 8' started by jayadratha, May 16, 2014.

  1. jayadratha

    jayadratha MDL Novice

    May 15, 2014
    6
    5
    0
    #1 jayadratha, May 16, 2014
    Last edited by a moderator: Apr 20, 2017
    I made a Win 8.1 AIO with WMC, but when I was activating with my free WMC key it was rejected. So I searched so many thread and decided to make a thread with each and everything to make a AIO in a single thread.

    Here I didn't make pre-activated WMC with free key, using this method you can use your free key to activate your WMC later via phone.

    Required ingredients:
    1. Download and install The Windows Assessment and Deployment Kit (Istall deployment tools only)
    2. Windows 8.1 Pro retail ISOs, both x86 & x64 version.
    You can also use the latest iso from MSDN which comes with update.
    3. General data.dat & token.dat
    (the use of a Virtual Machine is highly recommended)
    0) Disconnect from the Internet
    1) Install Windows 8 Pro using the Windows 8 Pro KMS client setup key (GVLK) ending J8CK4
    2) KMS activate using Microsoft Toolkit
    3) Use the "Add feature" function to upgrade to WMC, using the Pro WMC default key ending QGJXW
    4) Install the KB2871389 update
    5) Connect to the Internet
    6) Visit the Windows Store and start the Windows 8.1 upgrade
    7) Go have a lunch break, watch a movie or take a nap
    8) Once the Windows 8.1 upgrade completes, the procedure is complete

    You will find a set of activation tokens (data.dat, tokens.dat) in \Windows\System32\spp\store\2.0. Stop SPPSVC, then take a copy of them (data.dat is a hidden file). These are the tokens you are looking for.

    Lets Start The Procedure:

    Part 1: Make the environment.

    Create following folder structure

    C:
    \win81aio
    \win81 -> extract your windows 8.1 32bit iso here
    \x86 -> move the install.wim & copy sxs folder totally from win81\sources to here
    \x64 -> here extract your windows 8.1 64bit install.wim & sxs folder totally from 64bit iso
    \mount
    \temp
    \store -> copy your data.dat & tokens.dat file here

    Now run the console of "Deployment and Imaging Tools Environment" as administrator and run following commands.

    Part 2: Get Win 8.1 Pro Images.

    Code:
    Dism /Export-Image /SourceImageFile:c:\win81aio\x86\install.wim /SourceIndex:1 /DestinationImageFile:c:\win81aio\win81\sources\install.wim /DestinationName:"Windows 8.1 Pro" /compress:maximum
    
    Dism /Export-Image /SourceImageFile:c:\win81aio\x86\install.wim /SourceIndex:1 /DestinationImageFile:c:\win81aio\win81\sources\install.wim /DestinationName:"Windows 8.1 Pro with Media Center" /compress:maximum
    
    Dism /Export-Image /SourceImageFile:c:\win81aio\x64\install.wim /SourceIndex:1 /DestinationImageFile:c:\win81aio\win81\sources\install.wim /DestinationName:"Windows 8.1 Pro" /compress:maximum
    
    Dism /Export-Image /SourceImageFile:c:\win81aio\x64\install.wim /SourceIndex:1 /DestinationImageFile:c:\win81aio\win81\sources\install.wim /DestinationName:"Windows 8.1 Pro with Media Center" /compress:maximum
    
    Part 3: Add NetFx3 & WMC Feature & Add data.dat & token.dat

    Code:
    Dism /mount-wim /wimfile:C:\win81aio\win81\sources\install.wim /index:2 /mountdir:C:\win81aio\mount
    
    DISM /Image:C:\win81aio\mount /Enable-Feature /All /LimitAccess /FeatureName:NetFX3 /Source:C:\win81aio\x86\sxs
    
    Dism /Image:C:\win81aio\mount /Get-TargetEditions
    
    Dism /Image:C:\win81aio\mount /Set-Edition:ProfessionalWMC
    
    XCOPY /H /R /K /Y C:\win81aio\store\tokens.dat C:\win81aio\mount\Windows\System32\spp\store\2.0
    
    XCOPY /H /R /K /Y C:\win81aio\store\data.dat C:\win81aio\mount\Windows\System32\spp\store\2.0
    
    Dism /unmount-wim /mountdir:C:\win81aio\mount /commit
    
    imagex /flags "ProfessionalWMC" /info C:\win81aio\win81\sources\install.wim 2 "Windows 8.1 Pro with Media Center" "Windows 8.1 Pro with Media Center"
    
    Dism /mount-wim /wimfile:C:\win81aio\win81\sources\install.wim /index:4 /mountdir:C:\win81aio\mount
    
    DISM /Image:C:\win81aio\mount /Enable-Feature /All /LimitAccess /FeatureName:NetFX3 /Source:C:\win81aio\x64\sxs
    
    Dism /Image:C:\win81aio\mount /Get-TargetEditions
    
    Dism /Image:C:\win81aio\mount /Set-Edition:ProfessionalWMC
    
    XCOPY /H /R /K /Y C:\win81aio\store\tokens.dat C:\win81aio\mount\Windows\System32\spp\store\2.0
    
    XCOPY /H /R /K /Y C:\win81aio\store\data.dat C:\win81aio\mount\Windows\System32\spp\store\2.0
    
    Dism /unmount-wim /mountdir:C:\win81aio\mount /commit
    
    imagex /flags "ProfessionalWMC" /info C:\win81aio\win81\sources\install.wim 4 "Windows 8.1 Pro with Media Center " "Windows 8.1 Pro with Media Center"
    

    Part 4: Adding Name & Description To The Images According To Index No.

    Code:
    imagex /info C:\win81aio\win81\sources\install.wim 1 "Windows 8.1 Pro 32Bit" "Install Windows 8.1 Pro 32Bit With Update KB2919355"
    
    imagex /info C:\win81aio\win81\sources\install.wim 2 "Windows 8.1 Pro With Media Center 32Bit" "Install Windows 8.1 Pro WMC 32Bit With Update KB2919355"
    
    imagex /info C:\win81aio\win81\sources\install.wim 3 "Windows 8.1 Pro 64Bit" "Install Windows 8.1 Pro 64Bit With Update KB2919355"
    
    imagex /info C:\win81aio\win81\sources\install.wim 4 "Windows 8.1 Pro With Media Center 64Bit" "Install Windows 8.1 Pro WMC 64Bit With Update KB2919355"
    
    Part 5: Convert the WIM file to ESD to compress it more

    After running above commands you will see that the size of win81 folder is near 4.8GB. So we will convert the WIM into ESD because ESD files are more compressed. After converting into ESD I saved space nearly 0.9GB. So run following commands

    Code:
    Dism /export-image /sourceimagefile:C:\win81aio\win81\sources\install.wim /sourceindex:1 /destinationimagefile:c:\win81aio\temp\install.esd /checkintegrity /compress:recovery
    
    Dism /export-image /sourceimagefile:C:\win81aio\win81\sources\install.wim /sourceindex:2 /destinationimagefile:c:\win81aio\temp\install.esd /checkintegrity /compress:recovery
    
    Dism /export-image /sourceimagefile:C:\win81aio\win81\sources\install.wim /sourceindex:3 /destinationimagefile:c:\win81aio\temp\install.esd /checkintegrity /compress:recovery
    
    Dism /export-image /sourceimagefile:C:\win81aio\win81\sources\install.wim /sourceindex:4 /destinationimagefile:c:\win81aio\temp\install.esd /checkintegrity /compress:recovery
    


    Part 6: Add Ei.CFG & Make bootable ISO

    Next you will need to create an Ei.CFG file, Copy and paste the following into notepad and save as Ei.CFG
    Code:
    [Channel]
    Retail
    
    [VL]
    0
    

    & place the file in sources folder C:\win81aio\win81\sources
    EI.cfg Will allow you to install any of the editions without having to enter a product key first

    Now you need to create bootable iso, run below command to do this.

    Code:
    oscdimg -bC:\win81aio\win81\boot\etfsboot.com -h -u2 -m -lWin8.1_AIO C:\win81aio\win81\ C:\win81aio\Win8.1_AIO.iso
    

    Now you have made your Windows 8.1 With Media Center.

    NOTE:
    I have attached a cmd file. If you want then just do Part 1 & then run this cmd file & you will be done. Do the following
    1. Go to your installation directory of "Deployment and Imaging Tools Environment". By default for 64bit win8.1 it is
    C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools
    2. Paste the "win8.1 AIO maker Script.zip" file which I have attached & extract those 2 files here. (Ei.cfg & setup.cmd)
    3. Now run the console of "Deployment and Imaging Tools Environment" As Administrator.
    4. Type setup.cmd & press enter.


    Post reply if you have anything to ask or if you have any problem..
    Hit thanks if it helped you...
     

    Attached Files: