joeware - never stop exploring... :)

Information about joeware mixed with wild and crazy opinions...

Archive for August 4th, 2011

AdFind command for trust audit

by @ Thursday, August 4th, 2011. Filed under tech

Need to check the ages on the trusts in your forest?[1] for /f "tokens=*" %i in (‘adfind -sc domainlist‘) do adfind -h %i -binenc -f "&(samaccounttype=805306370)(pwdlastset<={{CURRENT:-180d}})" canonicalname name pwdlastset -tdcd -csv -nodn -sort pwdlastset       joe     [1] If you don’t audit your trusts to see if they have gone stale, you certainly […]

[joeware – never stop exploring… :) is proudly powered by WordPress.]