UnattendXMLGenerator
public static class UnattendXMLGenerator
1. Fields
1.1. Company
public const string Company
1.2. ComputerName
public const string ComputerName
1.3. DiskID
public const string DiskID
1.4. LocalAdmin
public const string LocalAdmin
1.5. LocalAdminPassword
public const string LocalAdminPassword
1.6. Locale
public const string Locale
1.7. LocaleFallback
public const string LocaleFallback
1.8. PartID
public const string PartID
1.9. Timezone
public const string Timezone
2. Methods
2.1. Format(string, string, string)
public static string Format(this string unattend, string key, string value)
| Name | Type | Description |
|---|---|---|
unattend |
string |
|
key |
string |
|
value |
string |
Returns: string
2.2. GenerateDismUnattendedXMLString(NETSetupConfig, Computer)
Generates a stripped unattend XML string for DISM-based installation. Uses templates that contain only specialize + oobeSystem passes (no windowsPE pass).
public static string GenerateDismUnattendedXMLString(this NETSetupConfig config, Computer computer)
| Name | Type | Description |
|---|---|---|
config |
NETSetupConfig |
|
computer |
Computer |
Returns: string
2.3. GenerateUnattendedXMLString(NETSetupConfig, Computer)
public static string GenerateUnattendedXMLString(this NETSetupConfig config, Computer computer)
| Name | Type | Description |
|---|---|---|
config |
NETSetupConfig |
|
computer |
Computer |
Returns: string
2.4. GetWimImageName(string)
Maps an OS name to the WIM image name used by DISM /Apply-Image /Name.
public static string GetWimImageName(string osName)
| Name | Type | Description |
|---|---|---|
osName |
string |
Returns: string