diff --git a/src/CommonLib/Processors/GPOLocalGroupProcessor.cs b/src/CommonLib/Processors/GPOLocalGroupProcessor.cs index 419a3efb..fa7041be 100644 --- a/src/CommonLib/Processors/GPOLocalGroupProcessor.cs +++ b/src/CommonLib/Processors/GPOLocalGroupProcessor.cs @@ -531,6 +531,11 @@ internal IEnumerable ProcessGPOXmlFile(string basePath, string gpoD var domain = s[0]; var res = _utils.ResolveAccountName(name, domain); + if (res == null) + { + _log.LogWarning("Failed to resolve member {memberName}", memberName); + continue; + } ga.Target = GroupActionTarget.LocalGroup; ga.TargetSid = res.ObjectIdentifier; ga.TargetType = res.ObjectType; @@ -540,6 +545,11 @@ internal IEnumerable ProcessGPOXmlFile(string basePath, string gpoD else { var res = _utils.ResolveAccountName(memberName, gpoDomain); + if (res == null) + { + _log.LogWarning("Failed to resolve member {memberName}", memberName); + continue; + } ga.Target = GroupActionTarget.LocalGroup; ga.TargetSid = res.ObjectIdentifier; ga.TargetType = res.ObjectType;