According to this stackoverflow question (link), you can generate it
xsd.exe unattend.xml
I did some keyword search for all xsd files in MDT, following file match publicKeyToken
, language
, and processorArchitecture
(but no versionScope
)
C:\Program Files\Microsoft Deployment Toolkit\Templates\Packages.xsd
It seems I am running to dead end even from MS documentation. http://schemas.microsoft.com/unattend
gives error page(it does contain other MS schema). Tried using resource viewer on some DLLs but didn't find any xsd resources. I am starting to suspect that the unattend schema is stored as some kind of data structure within MS tools.
I did use the xsd.exe
against Microsoft Deployment Toolkit\Templates\Unattend_Core_x64.xml
and produced the following xsd. Maybe that can help with your xml editor. (This does not replace an official schema.)
Unattend_Core_x64.xsd
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="unattend" targetNamespace="urn:schemas-microsoft-com:unattend" xmlns:mstns="urn:schemas-microsoft-com:unattend" xmlns="urn:schemas-microsoft-com:unattend" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:app1="http://schemas.microsoft.com/WMIConfig/2002/State">
<xs:import namespace="http://schemas.microsoft.com/WMIConfig/2002/State" schemaLocation="Unattend_Core_x64_app1.xsd" />
<xs:element name="unattend" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="settings">
<xs:complexType>
<xs:sequence>
<xs:element name="component" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ComputerName" type="xs:string" minOccurs="0" msdata:Ordinal="1" />
<xs:element name="ProductKey" type="xs:string" minOccurs="0" msdata:Ordinal="2" />
<xs:element name="RegisteredOrganization" type="xs:string" minOccurs="0" msdata:Ordinal="3" />
<xs:element name="RegisteredOwner" type="xs:string" minOccurs="0" msdata:Ordinal="4" />
<xs:element name="DoNotCleanTaskBar" type="xs:string" minOccurs="0" msdata:Ordinal="5" />
<xs:element name="TimeZone" type="xs:string" minOccurs="0" msdata:Ordinal="6" />
<xs:element name="InputLocale" type="xs:string" minOccurs="0" msdata:Ordinal="7" />
<xs:element name="SystemLocale" type="xs:string" minOccurs="0" msdata:Ordinal="8" />
<xs:element name="UILanguage" type="xs:string" minOccurs="0" msdata:Ordinal="9" />
<xs:element name="UserLocale" type="xs:string" minOccurs="0" msdata:Ordinal="10" />
<xs:element name="UserAccounts" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="AdministratorPassword" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Value" type="xs:string" minOccurs="0" />
<xs:element name="PlainText" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AutoLogon" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Enabled" type="xs:string" minOccurs="0" />
<xs:element name="Username" type="xs:string" minOccurs="0" />
<xs:element name="Domain" type="xs:string" minOccurs="0" />
<xs:element name="LogonCount" type="xs:string" minOccurs="0" />
<xs:element name="Password" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Value" type="xs:string" minOccurs="0" />
<xs:element name="PlainText" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RunSynchronous" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="RunSynchronousCommand" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Description" type="xs:string" minOccurs="0" msdata:Ordinal="0" />
<xs:element name="Order" type="xs:string" minOccurs="0" msdata:Ordinal="1" />
<xs:element name="Path" type="xs:string" minOccurs="0" msdata:Ordinal="2" />
</xs:sequence>
<xs:attribute ref="app1:action" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Identification" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="JoinDomain" type="xs:string" minOccurs="0" />
<xs:element name="JoinWorkgroup" type="xs:string" minOccurs="0" />
<xs:element name="MachineObjectOU" type="xs:string" minOccurs="0" />
<xs:element name="Credentials" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Username" type="xs:string" minOccurs="0" />
<xs:element name="Domain" type="xs:string" minOccurs="0" />
<xs:element name="Password" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SetupUILanguage" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="UILanguage" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ImageInstall" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="OSImage" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="WillShowUI" type="xs:string" minOccurs="0" />
<xs:element name="InstallTo" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="DiskID" type="xs:string" minOccurs="0" />
<xs:element name="PartitionID" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InstallFrom" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Path" type="xs:string" minOccurs="0" />
<xs:element name="MetaData" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Key" type="xs:string" minOccurs="0" />
<xs:element name="Value" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Display" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ColorDepth" type="xs:string" minOccurs="0" />
<xs:element name="HorizontalResolution" type="xs:string" minOccurs="0" />
<xs:element name="RefreshRate" type="xs:string" minOccurs="0" />
<xs:element name="VerticalResolution" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FirstLogonCommands" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="SynchronousCommand" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="CommandLine" type="xs:string" minOccurs="0" msdata:Ordinal="0" />
<xs:element name="Description" type="xs:string" minOccurs="0" msdata:Ordinal="1" />
<xs:element name="Order" type="xs:string" minOccurs="0" msdata:Ordinal="2" />
</xs:sequence>
<xs:attribute ref="app1:action" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="OOBE" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="HideEULAPage" type="xs:string" minOccurs="0" />
<xs:element name="NetworkLocation" type="xs:string" minOccurs="0" />
<xs:element name="ProtectYourPC" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ComplianceCheck" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="DisplayReport" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UserData" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="AcceptEula" type="xs:string" minOccurs="0" />
<xs:element name="ProductKey" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Key" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DriverPaths" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="PathAndCredentials" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Path" type="xs:string" minOccurs="0" msdata:Ordinal="0" />
</xs:sequence>
<xs:attribute ref="app1:keyValue" />
<xs:attribute ref="app1:action" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="name" form="unqualified" type="xs:string" />
<xs:attribute name="processorArchitecture" form="unqualified" type="xs:string" />
<xs:attribute name="publicKeyToken" form="unqualified" type="xs:string" />
<xs:attribute name="language" form="unqualified" type="xs:string" />
<xs:attribute name="versionScope" form="unqualified" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="pass" form="unqualified" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>