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

Updated Update-CMApplicationSource #355

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

baardhermansen
Copy link
Contributor

Used VSCode's Format Document and added a few full stops to console output, so there are several cosmetic changes.
Simplified code for copying source files to destination, by always removing \ at the end of the string (does not cause error if \ is not present).
Changed to filtering left instead of using Where-Object when searching for applications. In environments with high number of applications, this speeds up the search.

baardhermansen and others added 5 commits March 10, 2020 11:10
Simplified from the original. Removed surplus lines. Moved filtering to the left. Reduced number of WMI queries, which seems to have a big impact on speed.
@baardhermansen
Copy link
Contributor Author

For review @JankeSkanke :)

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

Successfully merging this pull request may close these issues.

1 participant