Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script should do pre-flight check for access to autounattend.xml #305

Open
FelixJongleur42 opened this issue Dec 22, 2024 · 0 comments
Open

Comments

@FelixJongleur42
Copy link

People tend to only download the ps1 file, not the autounattend.xml file.
The script should do a pre-flight check for access to autounattend.xml before it even starts processing the image, so this does not occur mid-flight:

Copy-Item : Der Pfad "C:\Users\flori\Downloads\autounattend.xml" kann nicht gefunden werden, da er nicht vorhanden ist.
In C:\Users\flori\Downloads\tiny11maker.ps1:237 Zeichen:1
+ Copy-Item -Path "$PSScriptRoot\autounattend.xml" -Destination "$Scrat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\flori\...utounattend.xml:String) [Copy-Item], ItemNotFoundException

Even better, it should create autounattend.xml on-the-fly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant