A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize requests, please see:
Add support for -exclude of files with Copy-ADTFile. Currently in powershell with Copy-item I have the option to use -exclude to enable me to copy a folder recursively, but without one of more specified files. Example: Copy-item -path 'C:\folder1' -destination 'C:\folder2' -recurse -exclude "NotNeededFile.txt"
Current implementation allows you to specify excluding Files folder, SupportFiles folder, or 'Other' (e.g. the toolkit script and module). So this does not fully line up with your request - I will have a rethink to see if there's a way to add this.
This request is now being tracked here:
https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/issues/2265
Current implementation allows you to specify excluding Files folder, SupportFiles folder, or 'Other' (e.g. the toolkit script and module).
So this does not fully line up with your request - I will have a rethink to see if there's a way to add this.
We've got this slated for PSADT 4.2! https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/pull/2071