Once again thank you in advance...
I recently wrote a SQL query/Job to track Objects in Active directory... I am having a bit of difficulty figuring out how to complete it.
I am in no way a SQL expert so, if there is something wrong, please point it out or give advice.
What my end goal is,to track machines that go into quarantine OU, and get pulled back out again. If they end up in quarantine OU a total of 3 times, I want to be able to create a list from that and identify those machines.
Since the objects in AD never get deleted, the only unique identifier I could figure out to use was the logonCount attribute. I didn't get that far yet
I am still stuck on counting movements and was looking for any help I could get.
SQL
USE[ComputerHealth]GO/****** Object: StoredProcedure [dbo].[quarantineScrub] Script Date: 9/8/2015 11:00:26 AM ******/...