Private/Win/Set-UnattendedWindowsComputerName.ps1
function Set-UnattendedWindowsComputerName { param ( [Parameter(Mandatory = $true)] [string]$ComputerName ) $component = $script:un | Select-Xml -XPath '//un:settings[@pass = "specialize"]/un:component[@name = "Microsoft-Windows-Shell-Setup"]' -Namespace $ns | Select-Object -ExpandProperty Node $component.ComputerName = $ComputerName } |