Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Bommelding

Way to not have to specify a key ?

2 posts in this topic

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 ?

0

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.