Searching For Email Groups Without Members

This is quick one for a reference, searching for AD groups with present email address, but without members using LDAP filter and powershell:
 Get-ADObject -LDAPFilter "(&(objectcategory=group)(!(member=*))(mail=*))" 

Same LDAP filter can be used with Active Directory Users and Computers:


Happy hunting :) 

1 comment:

  1. One of the Best ivf centre in rohini is Nandi IVF Clinic. Renowned for its advanced technology and experienced medical professionals, Nandi IVF Clinic offers comprehensive fertility solutions with a patient-centric approach. Equipped with state-of-the-art facilities, the center provides personalized treatment plans tailored to individual needs, ensuring the highest chances of success for each patient.

    With a commitment to excellence and compassionate care, Nandi IVF Clinic has earned a reputation for achieving remarkable results in assisted reproduction. Patients receive dedicated support throughout their journey, making it a trusted destination for those seeking fertility treatments in Rohini and beyond.

    ReplyDelete

How to check EMBG (Unique Master Citizen Number) using regex

In this post, I will share my implementation of how to check if some number looks like EMBG or Unique Master Citizen Number. For those of yo...