Discussion Locked

AD to alert admins

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am currently working on a project to keep track of hardware around the company. It would be very helpful if there was a program or script that would alert me of any changed/new machine accounts that had been created in AD, just in case one of our admins might make a change and forget to let me know. Does anybody know of a method of doing this?

2 replies

by dryflies

There was a win2k server newsletter article just today about a script that with a few mods will do exactly that.
it included a download:
https://www.techrepublic.com.com/5138-1035-5650586.html?tag=nl.e116

Modify the script to run periodically. add a function at the beginning of the script to check for newdatafile.txt. if it exists, rename it to olddatafile.txt. Next output the AD information to a text file named newdatafile.txt. Use a diff program to highlite any differences between the two files. There are several of these diff files around with various names. FC is one that comes with Win XP. type help FC to figure out how to use it and how to format its output to your liking. The results of FC will be any changes to your AD from the last time the script was run. you can use dates in the filename to keep a running log of changes and if you get really motivated could modify the script to provide some roll-back functionality.

This discussion is closed to new replies.