From 18367219c89fd0cc44f714462ff7d343c5b129de Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Mon, 24 Nov 2025 15:32:02 -0800 Subject: [PATCH] Fix xcopy command to handle PPKG filenames with spaces Adds proper quoting around file paths in the xcopy invocation to support PPKG filenames containing spaces. Without quoted paths, xcopy fails when filenames include whitespace characters. --- FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 index 76d345b..af861e8 100644 --- a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 +++ b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 @@ -1464,7 +1464,8 @@ If ($PPKGFileToInstall) { } WriteLog "Copying $PPKGFileToInstall to $USBDrive" Write-Host "Copying $PPKGFileToInstall to $USBDrive" - Invoke-process xcopy.exe "$PPKGFileToInstall $USBDrive" + # Quote paths to handle PPKG filenames with spaces + Invoke-process xcopy.exe """$PPKGFileToInstall"" ""$USBDrive""" WriteLog "Copying $PPKGFileToInstall to $USBDrive succeeded" Write-Host "Copying $PPKGFileToInstall to $USBDrive succeeded" }