fix: Fix computer name being echoed during device naming

This commit is contained in:
rbalsleyMSFT
2025-08-07 18:08:25 -07:00
parent 846d449aac
commit 17dc80f11b
@@ -410,7 +410,7 @@ elseif ($Unattend) {
Writelog 'Unattend file found with no prefixes.txt, asking for name'
Write-Host 'Unattend file found but no prefixes.txt. Please enter a device name.'
[string]$computername = Read-Host 'Enter device name'
Set-Computername($computername)
$computername = Set-Computername($computername)
Writelog "Computer name will be set to $computername"
Write-Host "Computer name will be set to $computername"
}