Q. After running Sysprep, all network drivers and settings are removed
A. Removal of network class drivers (i.e. modems and network cards) is expected behavior when using Sysprep to reseal the system.
For example: Let?s say you have a system that you have resealed with a network card installed. When you deliver the system to your customer, providing the network card was not removed after being resealed, the drivers for the network card will be reinstalled on the next boot after resealing the system.
As long as the network devices are supported in Box by Windows XP or updated third drivers have been included in the search path using one of the methods listed below, the network devices will be reinstalled.
Examples
Sysprep.inf
OEMPNPDriversPath=Drivers\Nic;
Additional information can be found in the following article:
How to Add OEM Plug and Play Drivers to Windows XP
If you have applied custom settings, such as Static IP Address etc., those settings will not be re-applied. If you are running Mini Setup (Sysprep -Mini) you can include the custom network settings to be re-applied in the Sysprep.inf.
If running Windows Welcome (OOBE) (Sysprep -Reseal), the networking section of Sysprep.inf is not processed; therefore, netset.exe needs to be used.
Netset.exe can be found on the Windows XP Product CD under \Support\Tools\Support.cab. Below is an example of netset.exe c:\net.txt using a sample script:
Example net.txt
[Networking]
InstallDefaultComponents=No
[Identification]
JoinWorkgroup = Workgroup
[NetAdapters]
Adapter01=Params.Adapter01
[Params.Adapter01]
InfID=*
[NetProtocols]
MS_TCPIP=Params.MS_TCPIP
[Params.MS_TCPIP]
AdapterSections=params.TCPIP.Adapter01
EnableLMHosts=No
[params.TCPIP.Adapter01]
SpecificTo=adapter01
WINS=no
DHCP=no
IPAddress=192.168.30.30
SubnetMask=255.255.255.0
In the C:\Sysprep folder, create the following directory structure: c:\Sysprep\I386\$OEM$
Create a cmdlines.txt and copy it to your c:\sysprep\I386\$OEM$ folder.
Example Cmdlines.txt
[Commands]
"c:\sysprep\netset.exe c:\sysprep\net.txt"
Add the following information to the Sysprep.inf in the C:\sysprep folder.
[Unattended] InstallFilesPath = "C:\Sysprep\i386"
After selecting Finish on the last Windows Welcome screen, the cmdlines.txt will be processed.