Deployment: sysprep and answer files

powder21

New member
Local time
1:07 PM
Messages
23
Hi, I had a couple of questions regarding Windows 7 Deployment. Not sure if this is the right subforum to post to, but it seemed the best fit.

One: I tried using sysprep with an answer file to configure a different product key by adding the Microsoft-Windows-Shell-Setup component to the Specialize pass and configuring ProductKey setting (I should mention that this was the only setting I configured). When rebooting to the image after sysprep (for testing), it errors out and the image is useless. I'm wondering if I am configuring the wrong setting, leaving blank settings that need to be configured, or if maybe I am adding it to the wrong pass. From what I understand the specialize pass is the first pass to run at startup after running /generalize.

Two: I tried running sysprep again (after re-installing to my test partition of course) without the answer file and everything worked fine. However, I was under the impression that without configuring the PersistAllDeviceInstalls setting in an answer file, all the device drivers would be uninstalled. Yet when I logged on, to my surprise, all my drivers remained. This is a good thing in my opinion, but I want to make absolutely sure that it wasn't a fluke and that device drivers are not typically uninstalled when running /generalize.

If anybody can help me out with this I would very much appreciate it. Thanks.
 

My Computer

Computer type
PC/Desktop
OS
Windows

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Thanks. Unfortunately, most of that deals with server side tools, which I'm not really working with at the moment. It's an excellent resource though, and I have bookmarked it for further reading. I will continue my trial and error on this issue, however, if anyone else has any more thoughts or suggestions, I'd love to hear them. Thanks again.
 

My Computer

Computer type
PC/Desktop
OS
Windows
After some more trial and error, I have come up with the following answers:

Question one: It turns out I was using a product key for the wrong edition of windows 7. It works just fine now
silly.gif


Question two: Without the PersistAllDeviceInstalls set to true in an answer file, the generalize pass DOES remove all the drivers. However, if a third-party driver was installed before running sysprep, the driver files will still be present and the specialize pass will re-install the third-party drivers for their respective devices. If you don't want the third-party drivers re-installed, you have to remove them before running sysprep. Also, if you apply the image to computers with a slightly different hardware configuration (and you're using an answer file), be sure that the DoNotCleanUpNonPresentDevices setting is set to false. Otherwise all drivers that were present on the original reference computer will be re-installed, regardless of the hardware configuration.

Hope this can be of some help to somebody in the future.
 

My Computer

Computer type
PC/Desktop
OS
Windows
Back
Top