UnattendXmlBuilder

2.0.0

Module for building Windows unattend XML documents.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name UnattendXmlBuilder -RequiredVersion 2.0.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name UnattendXmlBuilder -Version 2.0.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

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

Core Desktop

Dependencies

This module has no dependencies.

Release Notes

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

Version History

Version Downloads Last updated
3.0.0 26 4/21/2026
2.0.0 (current version) 14 4/12/2026
1.1 231 4/2/2024
1.0.3 41 8/2/2023
1.0.2 16 6/4/2023
1.0.1 9 6/4/2023
1.0 10 6/4/2023
Show more