Insert oemslpkey & now OEM info! Hey guys, im working on a small script here to insert certificate and oemslp key. The small problem i have now is the selection of oemslp key. Code looks like this: Code: Echo Insert productkey Echo What productkey to integrate? Echo Windows 7 Keys: Echo 1. Starter: Echo 2. Home Basic: Echo 3. Home Premium: Echo 4. Professional: Echo 5. Ultimate: Set /p productkey= The dism command looks like this: Code: "%WAIK%\Tools\%cpu%\Servicing\dism.exe" /Image:"%work%\mount" /Set-ProductKey:"%productkey%" Now i want the option to just press 1-5 and it'll take whatever the key might be and insert it... but using "set /p edition=productkey" does not work unfortunately, obviously im doing something wrong but what could that be ? When using "set /p productkey=" copying and pasting the key works fine but "edition=productkey" not at all. Thanks for help
Try this Code: Echo Insert productkey Echo What productkey to integrate? Echo Windows 7 Keys: Echo 1. Starter: Echo 2. Home Basic: Echo 3. Home Premium: Echo 4. Professional: Echo 5. Ultimate: choice /c 12345 /N /M "Select Edition? " Set edition=%ERRORLEVEL% echo Enter the Product Key Set /p productkey=
Sorry no :/ I first chosed edition /index then what i want to do with it and picked integrate oemslpkey then it asks for what key to integrate and im given the 5 choices above and then its suppose to integrate key..
It is a bit shabby but will get the work done Code: Echo Insert productkey Echo What productkey to integrate? Echo Windows 7 Keys: Echo 1. Starter: Echo 2. Home Basic: Echo 3. Home Premium: Echo 4. Professional: Echo 5. Ultimate: choice /c 12345 /N /M "Select Edition? " IF ERRORLEVEL 5 SET edition=Ultimate: & goto input IF ERRORLEVEL 4 SET edition=Professional: & goto input IF ERRORLEVEL 3 SET edition=Home Premium: & goto input IF ERRORLEVEL 2 SET edition=Home Basic: & goto input IF ERRORLEVEL 1 SET edition=Starter: & goto input :input set /p productkey= set key=%edition% %productkey% echo %key%
You don't need the EditionID while integrating key using DISM. Your initial script is correct and will integrate the key properly.
Hm.. i am confused lol.. your script tells me to enter editionid (1-5) and if i pick lets say 3 it goes to input which tells me then to enter the key, is that right ? Edit: Its not much of a big dael but itd be nice just to have to press "1. starter" and it'll take the starter key..
Thumbs up. ill try it right away Code works fine but the key didnt so ill check it out hm... i know that the 5th editionit IS ultimate.. Error: 87 The specified product key could not be validated. Verify that the specified product key is valid and that it matches the target edition.
Are you using this line exactly as it is written below? Code: "%WAIK%\Tools\%cpu%\Servicing\dism.exe" /Image:"%work%\mount" /Set-ProductKey:"%productkey%"
Ofcourse i am It works fine when i paste and copy the product key but not when using masterdisasters code above.
OK, excuse my confusion then, but what did you do before that? Did you actually extract all 5 images from the wim? Because normally you would mount one image, inject the key, commit, then mount the next image, inject, commit, and so on. But you dont seem to be mounting any images with that command, on the contrary, it looks as though you are trying to inject the key(s) into unmounted images. Or am i just missing something?