Solved

Sysprep windows 7 issues

Posted on 2013-01-21
2
809 Views
Last Modified: 2013-02-07
I have a working sysprep process for my new windows 7 image that deploys to different hardware and joins my domain and activates via KMS.

I have however some issues during the process I would like to iron out.

1.  When I boot the machine after applying my generalized image the sysprep window pops up.  I added a /quiet to the sysprep command line and this made no difference.  How do I stop the sysprep gui appearing after starting up for the first time.

2. I have 2 unattend.xml files that I use to control the generalize stage and another to control the OOBE stage.  The issue is the OOBE stage goes through the driver installation step.  I know this is because I am running sysprep /generalize /oobe and the generalize step detect drivers but I need to stop it from doing this on the oobe stage.

3. I have a setupcomplete.cmd file in the c:\windows\setup\scripts which correctly runs the commands I need.  It remains in place however.  Will this file be ran at each logon or will it only be processed if sysprep is running.

My process from start to finish is.
- Run basetofactory.cmd (attached)
- Snapshot the machine to an image to be deployed to the new hardware
- boot the new machine and allow sysprep to install the drivers
- run Factory_to_EndUser_(OOBE).cmd (attached)
- this will copy a new unattend_oobe.xml file with all the domain joining and run sysprep with /generalize /oobe to seal the machine for the end user
unattend-Generalize.xml
unattend-OOBE.xml
Base-to-Factory--Generalize-.cmd
Factory-to-EndUser--OOBE-.cmd
0
Comment
Question by:MarkBourn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:MarkBourn
ID: 38801749
Looks like I have resolved the driver issue on the second stage by adding
<DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
to the unattend_oobe.xml

Just need to work out why the sysprep gui ignors my /quiet on the first boot and clarify if the setupcomplete.cmd will not rerun once sysprep has finished its oobe phase.
0
 
LVL 29

Accepted Solution

by:
Michael Pfister earned 500 total points
ID: 38804568
Setupcomplete.cmd will only run once.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question