Simpler way

Sep 18, 2008 at 8:36 AM
Hi,

You should check out the joeware AD tools, you could achieve this outcome with a single command, pipe it to a command-line mailer (such as blat) and your done in two lines in a batch file.

adfind -default -binenc -f  "&(samaccountype=805306368)(accountexpires<{{UTC:12/12/2008}})" -csv name displayname

This is very rough as I do not have access to a Directory.

Coordinator
Nov 7, 2008 at 2:02 AM
I don't see how it's simplier, plus how exactly you modify contents of email which will be sent.