New Response
Cancel
Copy to Archive
Move to Archive
Document Library
Main Topic
Kurt Tomicich
2017/04/25
Reference
Subject:
SysPrep Notes
Category:
OS
Revision Date:
2017/04/25
Modified:
2017/04/26
Originator
Reviewers
Kurt Tomicich
Windows 10 - Customize Base Image
Sysprep is installed with every version of Windows. You must always run Sysprep from the
%WINDIR%\system32\sysprep
directory.
Answer File
https://msdn.microsoft.com/en-us/windows/hardware/commercialize/manufacture/desktop/windows-setup-automation-overview
Using instructions at:
https://technet.microsoft.com/en-us/library/cc749317(v=ws.10).aspx
For Vista and "No longer maintained" but...
Requires System Image Manager (SIM) from the Deployment Tools module of the
Windows ADK
Can NOT use an ISO or bootable media created by the Media Creation Tool - I ended up getting an ISO through
the Windows and Office ISO Downloader
Requires no installation, just run the EXE.
Has been saved to
U:\Utilities - Windows\Windows ISO Downloader.exe
There's another site, but I didn't try it:
http://windowsiso.net/
Changes I made to the SetupConfig: This is W10 1703
Modified to Preserve Device Drivers
Similar.xml
CopyProfile
CopyProfile.xml
Both
CopyProfileSimilar.xml
Copy one of the above to
C:\Windows\System32\SysPrep\
PowerShell Com
mand as Administrator:
C:\Windows\System32\SysPrep\SysPrep /generalize /oobe /shutdown /unattend:C:\Windows\System32\SysPrep\CopyProfileSimilar.xml
Skip the Unattend parameter if Profile is not being copied and it's not being restored to the same hardware
Ran into an issue applying Generalize at one point because there was a temp user that had a provisioned App which I had removed from Provisioning.
LINK
=====================================
The /detecthal option in the Boot Configuration Data (BCD) enables a system that has already run Sysprep to install the correct HAL.
CopyProfile
Boot into Audit Mode
%WinDir%\System32\SysPrep\SysPrep.exe /audit
Make customizations
After your customizations are completed, insert the media that contains the CopyProfile answer file in the reference computer. For example, you can copy the answer file to a USB drive.
On the reference computer, open an elevated command prompt, and then type this command:
C:\Windows\System32\Sysprep\Sysprep /generalize /oobe /shutdown /unattend: F:\CopyProfile.xml
Using System Image Manager on a technician computer:
In the Windows Image pane, expand Components, right-click amd64_Microsoft-Windows-Shell-Setup, and then click Add Setting to Pass 4 specialize.
In the Answer File pane, select the Components\4_specialize\amd64-Microsoft-Windows-Shell-Setup_neutral folder.
In the Microsoft-Windows-Shell-Setup Properties pane, in the Settings section, type the value CopyProfile = true.
you can specify a separate Unattend.xml file by using the
Sysprep /unattend:
<file_name>
option. For more information, see
Sysprep Command-Line Options
.
Sysprep /generalize
- Prior to imaging
Don't use the Windows Store to update your Windows Store apps before running
sysprep /generalize
Preserve device drivers -
in answer file, specify
PersistAllDeviceInstalls
setting in the
Microsoft-Windows-PnPSysprep
component to
True
. The default value is
false
OOBE - Out Of Box Experience
Sysprep /oobe
command.
Audit Mode
configure Windows to boot directly to audit mode by using the
Microsoft-Windows-Deployment | Reseal | Mode
setting in an answer file
Detecting the state of a Windows Image -
You can use Sysprep to identify the state of a Windows image. That is, you can determine whether the image will boot to audit mode or OOBE, or if the image is still in the process of installation
All Documents
   
By Author
   
By Category
   
By Alternate Name
   
Review Status
   
Help