diff --git a/src/CommonLib/Extensions.cs b/src/CommonLib/Extensions.cs index 570a2b58..e582b273 100644 --- a/src/CommonLib/Extensions.cs +++ b/src/CommonLib/Extensions.cs @@ -186,7 +186,7 @@ public static string LdapValue(this Guid s) /// /// public static bool IsComputerCollectionSet(this CollectionMethod methods) { - const CollectionMethod test = CollectionMethod.ComputerOnly | CollectionMethod.LoggedOn | CollectionMethod.SmbInfo | CollectionMethod.SmbInfo; + const CollectionMethod test = CollectionMethod.ComputerOnly | CollectionMethod.LoggedOn | CollectionMethod.SmbInfo | CollectionMethod.WebClientService; return (methods & test) != 0; } diff --git a/src/CommonLib/LdapProducerQueryGenerator.cs b/src/CommonLib/LdapProducerQueryGenerator.cs index 14ac7db0..25c6cb9b 100644 --- a/src/CommonLib/LdapProducerQueryGenerator.cs +++ b/src/CommonLib/LdapProducerQueryGenerator.cs @@ -47,7 +47,7 @@ public static GeneratedLdapParameters GenerateDefaultPartitionParameters(Collect if (methods.HasFlag(CollectionMethod.SPNTargets)) properties.AddRange(CommonProperties.SPNTargetProps); - if (methods.HasFlag(CollectionMethod.DCRegistry) || methods.HasFlag(CollectionMethod.LdapServices)) + if (methods.IsComputerCollectionSet()) properties.AddRange(CommonProperties.ComputerMethodProps); if (methods.HasFlag(CollectionMethod.SPNTargets)) {