OSDeploy / OSDBuilder

PowerShell Module
http://osdbuilder.com
MIT License
193 stars 55 forks source link

WinPEAutoExtraFiles does not work with PEBuilds #82

Open nixtar opened 2 years ago

nixtar commented 2 years ago

Looks like the robocopy for WinPEAutoExtraFiles in Public/New-PEBuild.ps1 was commented out in 21.7.13.1?

How can we make a PEBuild with WinPEAutoExtraFiles?

nixtar commented 2 years ago

As a workaround I created a PEScript with the commented out robocopy:

robocopy "$OSSourcePath\WinPE\AutoExtraFiles" "$MountDirectory" *.* /s /ndl /xf bcp47*.dll /xx /b /np /ts /tee /r:0 /w:0 /Log+:"$Info\logs\$((Get-Date).ToString('yyyy-MM-dd-HHmmss'))-AutoExtraFiles.log" | Out-Null

This works.

Perhaps a warning when running New-PEBuild with a PEBuild that has WinPEAutoExtraFiles set to true?