Sysprep functions (OSD)
Sysprep functions
Section titled “Sysprep functions”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 Files
Section titled “Unattend Files”| UNATTEND FILE | OPERATING SYSTEMS | FILE LOCATION |
|---|---|---|
| Unattend.xml | Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008R2 | C:\Windows\Panther\ |
| Sysprep.inf | Windows 2000, Windows XP, Windows Server 2003, Windows Server 2003 R2 | C:\Sysprep\ |
Remarks
Section titled “Remarks”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.
Example
Section titled “Example”<?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>Functions
Section titled “Functions”- Sysprep_AddRunCommand
- Sysprep_JoinDomain
- Sysprep_JoinWorkgroup
- Sysprep_SetLocalAdminPassword
- Sysprep_SetOrganizationName
- Sysprep_SetProductKey
- Sysprep_SetRegisteredOwner