Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Reporting from Active Directory Omitting certain groups

$
0
0

I need to create a HTML report of all AD users in the DC based on username, email, description and lastlogondate. I need to create one section in the report for each of three specific groups that have been created, and then another section forall others (that's the tricky part for me).

I can query the groups individually but how can I go about omitting the three groups and querying all other users in the DC? I'm pulling the four values as variables to make it easier to output as a HTML report.

Thanks in advance.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>