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

Way to not have to specify a key ?


  • Please log in to reply
1 reply to this topic

#1
Bommelding

Bommelding
  • Member
  • 7 posts
  • OS:none specified
  • Country: Country Flag
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 ?


How to remove advertisement from MSFN

#2
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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

Edited by myselfidem, 11 November 2010 - 04:58 AM.

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN