UnattendXmlBuilder
3.0.0
Module for building Windows unattend XML documents.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2023 MartinGC94. All rights reserved.
Package Details
Author(s)
- MartinGC94
Tags
Unattend Autounattend XML Windows Installation
Functions
Add-UnattendCommand Add-UnattendDiskPartition Add-UnattendDriverPath Add-UnattendGroupMember Add-UnattendImage Add-UnattendInterfaceDnsConfig Add-UnattendInterfaceIpConfig Add-UnattendUser Export-UnattendFile New-UnattendBuilder Set-UnattendAudioSetting Set-UnattendAutoLogon Set-UnattendComputerName Set-UnattendDnsSetting Set-UnattendDomainJoinInfo Set-UnattendFirewallSetting Set-UnattendIpSetting Set-UnattendLanguageSetting Set-UnattendOobeSetting Set-UnattendOwnerInfo Set-UnattendPowerSetting Set-UnattendProductKey Set-UnattendRdpSetting Set-UnattendServerManagerSetting Set-UnattendSysPrepSetting Set-UnattendTimeSetting Set-UnattendTpmSetting Set-UnattendUacSetting Set-UnattendWindowsSetupSetting Set-UnattendWinReSetting
PSEditions
Dependencies
This module has no dependencies.
Release Notes
3.0.0:
Changed the ToString() method for the UnattendBuilder class so that the encoding XML declaration is set to UTF-8 as intended.
Added a new overload for the ToString() method for the UnattendBuilder class so that the encoding can be user defined.
Added parameter validation for the -UseRemainingSpace and -LocalAdmin switches in Add-UnattendDiskPartition and Add-UnattendUser respectively.
If a false value is specified the commands will throw an error.
Added length validation to the Name parameter for the -Name parameter in Add-UnattendUser to match Windows limitations in usernames. (1 - 20 chars).
Updated the recovery partition size from 620MB to 790MB in the BIOS/UEFI disk templates in Add-UnattendDiskPartition to match Windows 11s current defaults.
2.0.0:
Added parameter validation for the -WDS and -DataImage switches in Add-UnattendImage
If a false value is specified it will throw an error.
Fixed the checks for several parameters for Add-UnattendImage so that values that PowerShell would convert to false are now passed along properly (empty strings, the number 0, etc.).
In Add-UnattendCommand, converted -FirstLogonCommand and -LogonCommand from switch parameters to string array parameters and removed the -Command parameter from the FirstLogon and LogonPersistent parameter sets.
This means users can specify the commands to run directly in the -FirstLogonCommand and -LogonCommand parameters instead of having to specify both a switch and -Command.
Updated the product key argument completers replacing the win 10 keys with 11 and adding server 2025 standard and datacenter.
Added -UserLocale parameter to New-UnattendBuilder
1.1:
Assign parameter position 0 to Export-UnattendFile:FilePath
Add "RecoveryBIOS" as a valid value for Add-UnattendDiskPartition:PartitionType
Update the BIOS disk template for Add-UnattendDiskPartition so it creates the partition with the correct ID.
1.0.3:
Resolve relative paths for the SourceFile parameter of the New-UnattendBuilder command
1.0.2:
Fix TimeZone completer for Set-UnattendTimeSetting
1.0.1:
Add argument completers for the following Commands and parameters:
Set-UnattendTimeSetting:TimeZone
Set-UnattendLanguageSetting:UiLanguageFallback
Add positions for the following command and parameter combinations:
Add-UnattendCommand:Command
Add-UnattendDriverPath:Path
Set-UnattendComputerName:ComputerName
Set-UnattendProductKey:ProductKey
Fix commands that wouldn't work properly when using certain parameters:
Add-UnattendDriverPath:Path
Add-UnattendInterfaceIpConfig:DefaultGateway
Set-UnattendFirewallSetting:EnabledFirewallGroups
Set-UnattendFirewallSetting:DisabledFirewallGroups
Set-UnattendFirewallSetting:LogDroppedPackets
1.0:
Initial release
FileList
- UnattendXmlBuilder.nuspec
- StringWriter2.ps1
- UnattendXmlBuilder.psd1
- UnattendXmlBuilder.psm1