Skip to content

Commit d94cc8b

Browse files
committedAug 13, 2020
Fix #11 - only grab the latest version of an application
1 parent 6982563 commit d94cc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎UI++Editor/Controllers/ConfigMgrScanner.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public static List<CMApplication> GetCMApplications(string CMServer, string CMSi
122122
ManagementScope scope = new ManagementScope("\\\\" + CMServer + "\\root\\SMS\\site_" + CMSiteCode);
123123

124124
// Get All Applications
125-
ObjectQuery query = new ObjectQuery("select LocalizedDisplayName from SMS_Application");
125+
ObjectQuery query = new ObjectQuery("select LocalizedDisplayName from SMS_ApplicationLatest");
126126
ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query);
127127
ManagementObjectCollection apps = searcher.Get();
128128

0 commit comments

Comments
 (0)
Please sign in to comment.