Skip to content

Sysprep functions (OSD)

The sysprep category contains functions create and manipulate settings in the Windows MiniSetup answer files.
These functions works transparently on both sysprep.inf and unattend.xml, giving a uniform way for setting values regardless of operating system version.

UNATTEND FILEOPERATING SYSTEMSFILE LOCATION
Unattend.xmlWindows Vista, Windows 7, Windows Server 2008 and Windows Server 2008R2C:\Windows\Panther\
Sysprep.infWindows 2000, Windows XP, Windows Server 2003, Windows Server 2003 R2C:\Sysprep\

When working with unattend.xml, the unattend.xml file must exist, and the root component tags must exist as shown in the example below. All elements in the components tag will be inserted or deleted by the functions.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-UnattendedJoin" ...>
</component>
</settings>
</unattend>