Showing posts with label Sysprep. Show all posts
Showing posts with label Sysprep. Show all posts

Monday, August 15, 2016

How to create an unattended file for Windows 7

First thing you need to do is download the deployment kit.

It can be downloaded here.

After installing it you need to insert the Windows 7 CD/media.  This can be done with any operating system but you need to have the media for each specific OS.

Open the CD and inside the Sources directory there will be a file called Install.wim.  Copy that to a location that you will remember.

Open Windows System Image Manager

Then select File -> Select Windows Image -> Navigate to where you saved the Install.wim -> click Select.

It will say that you don't have a catalog.  That's fine, just click Yes and it'll create one for you.

After it completes, select File -> New Answer File.

Now we are ready to start building the Answer file.




Source:  Link Link Link

Tuesday, May 6, 2014

Sysprep does not remove product key

So I was given a disk by our purchasing group, Windows 7 install disk.  After installing it, I realized that the key was baked in some how. No big deal.  Well when it came to sysprep time, it was a big deal.

Here is the problem.  When trying to sysprep in general, not yet using an unattend file, it never asked for a product key.  I needed it to ask for one because I had some individual keys I had to manually enter.

Here is what I figured out.

First run the command -> slmgr.vbs /dlv

This will give you information about the way it's licensed.

Mine said Microsoft Windows 7 VOLUME_KMSCLIENT channel.  That was odd.  It should say Microsoft Windows 7 Professional.

I then thought this might work. If you were to update it with a product key that is on the computer, it might get rid of the KMS configuration and reset it back to a standard client.

So I did -> cscript slmgr.vbs /ipk <insert product key here> (one time it worked with cscript the other it didn't)

I then reran slmgr.vbs /dlv and now it says Microsoft Windows 7 Professional.

Now it was time to try just sysprep, no unattend file.

I ran c:\windows\system32\sysprep\sysprep /generalize /oobe

It rebooted and went through the sysprep process.  And voila! it now prompted me to enter my key!

Source:  Link

ShareThis