OSDeploy / OSDBuilder

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

content start layout file not found #78

Open skipthompson81 opened 2 years ago

skipthompson81 commented 2 years ago

while building a task in which i added start layout.xml and unattend.xml files, it fails claiming

    f:\osdbuilder4\Content\F:\osdbuilder4\Content\StartLayout\Win10 StartLayout.xml
Copy-Item : Cannot find path 'F:\osdbuilder4\Content\F:\osdbuilder4\Content\StartLayout\Win10 StartLayout.xml' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\OSDBuilder\22.4.20.1\Private\AllFunctions.ps1:426 char:9
+         Copy-Item -Path "$SetOSDBuilderPathContent\$StartLayoutXML" - ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (F:\osdbuilder4\...StartLayout.xml:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

2022-05-18-152406 OS: Use Content Unattend
    f:\osdbuilder4\Content\F:\osdbuilder4\Content\Unattend\unattend.xml
Copy-Item : Cannot find path 'F:\osdbuilder4\Content\F:\osdbuilder4\Content\Unattend\unattend.xml' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\OSDBuilder\22.4.20.1\Private\AllFunctions.ps1:451 char:5
+     Copy-Item -Path "$SetOSDBuilderPathContent\$UnattendXML" -Destina ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (F:\osdbuilder4\...nd\unattend.xml:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
skipthompson81 commented 2 years ago

the obvious error is a duplication in the path of F:\ twice within the command.