-
Notifications
You must be signed in to change notification settings - Fork 18
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
Why not use Get-CMApplication -Name for Get-AppList.ps1? #13
Comments
What is the speed difference when using the -fast switch in your environment between the 2 commands? |
But I already used -Fast above... Or you mean with and without -Fast?
|
When you say insanely long, what do you mean? In your first comment you indicated it took 3-4 seconds? |
Ben, my first measurement/comment included -Fast parameter, my second one didn't :) |
Which function/line are you referring to please? |
This and all the other "Get-CMApplication -Fast" references in the same file. |
Consideration accepted, thank you |
Ben, why are you retrieving the whole list of CM apps and then do filtering by name on the client side when you can make use of the "Name" parameter of Get-CMApplication supporting wildcards and let the server do the filtering?
My environment (300+ apps):
$apps = Get-CMApplication -Fast | Where-Object { $_.LocalizedDisplayName -like "*java*" }
$apps = Get-CMApplication -Name "*java*" -Fast
The text was updated successfully, but these errors were encountered: