以下代码返回登录日期早于 3 个月前的所有计算机负责人,但没有获取 lastlogontimestamp 为 null 的所有计算机负责人
PrincipalContext context = new PrincipalContext(ContextType.Domain);
PrincipalSearchResult<ComputerPrincipal> computers = ComputerPrincipal.FindByLogonTime(context, DateTime.Now.AddMonths(-3), MatchType.LessThanOrEquals);
我怎样才能优雅地将那些具有空值“lastlogontimestamp”值的“计算机”添加到“计算机”中?