image When using the "Capture Network Settings" task in a Configuration Manager 2007 (SCCM 2007) OSD Task Sequence on a PC that has teamed NICs, not all of the settings of the NIC may be captured properly.  This mainly applies to DNS and WINS settings that are set statically.  In these cases the settings are not captured and instead are set to obtain from DHCP when the network settings are restored via the "Apply Network Settings" task.

Cause

Microsoft Windows does not officially support teamed NICs. Support for teamed NICs are provided by third party vendors via third party drivers and software. For this reason, the "Capture Network Settings" task was never tested to work with teamed NICs.

Resolution

The ZTINICConfig.wsf script from the Microsoft Deployment Toolkit (MDT) properly captures all settings on teamed NICs. This script can be run instead of the "Capture Network Settings" task.

Note: Because of some known issues with the ZTINICConfig.wsf script in MDT 2008 Update 1, it is recommended to use the ZTINIConfig.wsf script from MDT 2010. If using MDT 2008 Update 1 instead of MDT 2010, please see the instructions after the steps below on the modifications that need to be done to the ZTINICConfig.wsf script of MDT 2008 Update 1.)

1) Integrate MDT 2010 with SCCM 2007, making sure to create the MDT Toolkit Package via the "Create Microsoft Deployment Task Sequence" wizard.

2) Right click on the affected Task Sequence and choose "Edit".

3) Click on the "Capture Network Settings" task and then click on the "Options" tab. Check the option "Disable this step".

4) Immediately after the "Capture Network Settings" task, add the "Use Toolkit Package" task (found under the Add - - > MDT menu), and then point to the MDT Toolkit Package created in Step 1.

5) Immediately after the "Use Toolkit Package " task, add the "Gather" task (found under the Add - - > MDT menu), and then set to "Gather only local data (do not process rules)".

6) Immediately after the "Gather" task, add a "Run Command Line" task (found under the Add - - > General menu).

7) In the "Run Command Line" task created in Step 6, check the option "Package" and point to the MDT Toolkit Package created in Step 1, and then set the following values:

"Name:"
Capture Network Settings

"Command Line:"
cscript scripts\ZTINICConfig.wsf /ForceCapture

If using MDT 2008 Update 1, the ZTINICConfig.wsf script needs to be edited to correct a known issue in the script. These changes are already present in the ZTINICConfig.wsf of MDT 2010 so these changes should NOT be performed on the ZTINICConfig.wsf script of MDT 2010:

1) Find the package source for package that contains the MDT 2008 Toolkit Package files (which is where the ZTINICConfig.wsf script is stored)

2) Open the Scripts folder and make a backup copy of the file ZTINICConfig.wsf

3) Open the file ZTINICConfig.wsf in Notepad

4) In the ZTINICConfig.wsf file, find the lines

ElseIf ObjNetworkAdapters.Count = 1 then

      ' If there is only one MAC Address, there is no need to save the MACAddress, there is only one Configuration.

      SaveMACAddress = FALSE

and comment them out by putting an apostrophe (‘) before the first and third lines (the second line is already commented out). When finished, they should look as follows:

'ElseIf ObjNetworkAdapters.Count = 1 then

      ' If there is only one MAC Address, there is no need to save the MACAddress, there is only one Configuration.

'     SaveMACAddress = FALSE

5) Save the file making sure that when the file is saved that it is saved as a WSF file and not a TXT file.

6) Update the MDT 2008 Toolkit Package package on the the DPs where the package exists. Make sure that the package source version is updated.

Hope this helps,

Frank Rojas | Support Escalation Engineer