Anyone can give me a script that checks every Distribution group each day once and gets the differences to a file.?

Hi,

Anyone can please help me with a script that can be scheduled to check an OU where i have 100's of distribution groups and check the count and member names and match with a older file and then place the changes alone to a new file. All group and membership changes to a file.

Like which group which user was removed and which group which user was added. if no change then mention nothing.

I tried many ways but could not succed via some free tools and Event logs.

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Without scripting, this might be easier if you have access to the domain controller servers. If not, then ask your infrastructure team to do this and export the logs when you need them.

Enable auditing on domain controller and watch the event logs. You can export the event logs and import into Excel somehow too.

Enable a Group Policy on all the domain controllers to ensure this option is set.
Steps: On your domain controller open Start > Administration Tools > Domain Controller Security Policy
Expand Local polices and click on Audit Policy
Edit "Audit account management" and select "Success"
Do this to all your Domain Controllers or Apply a GPO
Watch the event log for the following Event IDs

Group Policy
You can add this rule to your existing GPO, or create a new GPO for each rule and then apply to a security group.
Steps: Open the GPO editor
Create a new policy and give it a name
Expand Computer Configuration > Windows Settings > Local policies > Audit Policy
Select Audit account management
Check the boxes "Define these policy settings" and "Success"
Apply this GPO all the Domain Controllers or use a security group

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom on how WatchGuard's Wi-Fi security stacks up against the competition plus a LIVE demo!

if one of the following properties has changed, the email will be sent:
1. AccountDisabled
2. AccountExpirationDate
3. PasswordLastChanged
4. GroupMembership
5. if user was deleted, or new user was created