Closed devel1988wyc closed 3 years ago
Agreed. This is really a bug in the implementation. I updated with the below.
NOTE: "unattend.xml" is the actual file name that is used in normal deployments
_#region Copying over unattend.xml Write-Host "`nLooking for unattend.xml.." -ForegroundColor Yellow if (Test-Path "$($usb.winPESource)scripts\unattend.xml" -ErrorAction SilentlyContinue) { Write-Host "Unattend file found! Copying over to scratch drive.." -ForegroundColor Green New-Item -Type dir "$($usb.scRoot)Windows\Panther" | Out-Null Copy-Item -Path "$($usb.winPESource)\scripts\unattend.xml" -Destination "$($usb.scRoot)Windows\Panther\unattend.xml" | Out-Null } else { Write-Host "Nothing found." -ForegroundColor Red }
I've Noticed the unatteded file didn't want to copy 1) folder did not exist. 2) typo in the looking for unattented.xml
region Copying over unattended.xml