MSFN Forum: Way to not have to specify a key ? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Way to not have to specify a key ?

#1 User is offline   Bommelding 

  • Group: Members
  • Posts: 7
  • Joined: 23-September 10
  • OS:none specified
  • Country: Country Flag

Posted 11 November 2010 - 02:58 AM

As the Topic titel says.
Is there anyway to prevent getting an error during an unattended windows setup when you haven't specified a product key ?


#2 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,392
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 11 November 2010 - 04:43 AM

Hello!
Yes it's possible, if you inject the key and in this way you don't need to add this one inside "Autounattend.xml"!
You need to mount the image (install.wim) you want and after use this command, empolying Dism.exe
You need to have installed WAIK for Windows 7 first!
Adapt to your needs (example for Windows 7 Ultimate x86 and temp mount folder called "test")

Set_Product_Key.cmd
@echo off
echo ==Mounting Image Index:5 Windows 7 Ultimate== 
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Mount-Wim /WimFile:"C:\win7pro\sources\install.wim" /Index:5 /MountDir:"C:\test" 
pause to see if ERROR 
echo. 
echo ==Set Valid ProductKey (or Default) for Windows 7 Ultimate== 
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Image:"C:\test" /Set-ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX 
pause to see if ERROR 
echo. 
echo ==Unmount and Commit Image Index:5 Windows 7 Ultimate== 
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\test" /commit 
pause to see if ERROR 


Cheers

This post has been edited by myselfidem: 11 November 2010 - 04:58 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy