I see that you have previous experience in adding Post-Setup tasks by editing a mounted folder. While you can still do that work, NTLite uses a different strategy so it can preserve Post-Setup actions in the preset.
1. Don't copy your files to NTLite's cache folders. When you
Add / File, NTLite will automatically copy those files to its private staging folder. This allows NTLite to remember the file's source location, and reload it from there.
2. When you call a PS script file using "-NoProfile -ExecutionPolicy Bypass", you can run the script one-time without permanently changing the Execution Policy for Windows or your profile. Sometimes "-NoProfile -ExecutionPolicy Bypass" is aliased as "-nop -ep bypass".
"powershell -ExecutionPolicy Bypass" for -Command has no effect. Execution Policy only applies to scripts, and not any single -Command line. So you can replace it with "powershell -Command".
3. For every .ps1 script loaded into Post-Setup, NTLite will auto-create a new command with "-NoProfile -ExecutionPolicy Bypass -File" inserted for you. There is nothing more required, unless you want to enter optional arguments passed to the script in the
Parameters box.
4. If you wanted to manually create a new command line, it must be in the form of a
Command and its optional
Parameters.
| Command | Parameters |
| cmd.exe | /c copy C:\Windows\Setup\Files\file.txt D:\Folder |
| powershell | -C "Set-WindowsReservedStorageState -State Disabled" |
| wscript | C:\Users\GARLIN\Downloads\invisible.vbs cmd /c SCRIPT.BAT |