From 860850eff8961449a6c87159f2a4c61af30f6221 Mon Sep 17 00:00:00 2001 From: Nicolaivr Date: Mon, 31 Oct 2022 16:57:27 +0100 Subject: [PATCH] Update Invoke-Provision.ps1 Correcting use so unattend.xml will be found in windows installation --- Invoke-Provision/Invoke-Provision.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Invoke-Provision/Invoke-Provision.ps1 b/Invoke-Provision/Invoke-Provision.ps1 index 622a960..e780783 100644 --- a/Invoke-Provision/Invoke-Provision.ps1 +++ b/Invoke-Provision/Invoke-Provision.ps1 @@ -511,14 +511,14 @@ try { Write-Host "`nSetting the boot environment.." -ForegroundColor Yellow Invoke-Cmdline -application "$($usb.scRoot)Windows\System32\bcdboot" -argumentList "$($usb.scRoot)Windows /s s: /f all" #endregion - #region Copying over unattended.xml - Write-Host "`nLooking for unattented.xml.." -ForegroundColor Yellow - if (Test-Path "$($usb.winPESource)scripts\unattended.xml" -ErrorAction SilentlyContinue) { + #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 "Found it! Copying over to scratch drive.." -ForegroundColor Green if(-not (Test-Path "$($usb.scRoot)Windows\Panther" -ErrorAction SilentlyContinue)){ New-Item -Path "$($usb.scRoot)Windows\Panther" -ItemType Directory -Force | Out-Null } - Copy-Item -Path "$($usb.winPESource)\scripts\unattended.xml" -Destination "$($usb.scRoot)Windows\Panther\unattended.xml" | Out-Null + Copy-Item -Path "$($usb.winPESource)\scripts\unattend.xml" -Destination "$($usb.scRoot)Windows\Panther\unattend.xml" | Out-Null } else { Write-Host "Nothing found. Moving on.." -ForegroundColor Red