Re: Email Password Expire Notifications



I haven't looked at Joe's tool suggestion but most command
line tools will easily write their output to a text file with
command line output "redirection" which is ">", e.g.,

toolcmd PARAMETERS >outfile.txt

Command line SMTP clients are fairly easy to find, and it
you don't have a favorite I would look first on Sourceforge.net
or maybe download.com and TwoCows.com

--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]

"George Evans" <noreply@xxxxxxxxxxxxx> wrote in message
news:%23QJoqzvwGHA.4616@xxxxxxxxxxxxxxxxxxxxxxx
I've checked it out, nice program but it doesn't seem to be able to write
to a text file nor is there any way to easily notify users. I'm not
looking to write code but a off the shelf solution.

I'm pretty surprised that someone hasn't written something or that
Microsoft hasn't included this option.

"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx> wrote
in message news:uBMl7DvwGHA.3264@xxxxxxxxxxxxxxxxxxxxxxx
If you want to write a script, Windows comes with pretty decent SMTP
client COM object library called cdosys.dll that is easy to incorporate
in a script. The documentation on using it begins here:

http://msdn.microsoft.com/library/?url=/library/en-us/cdosys/html/f928be29-59e2-4341-86c9-31842075775a.asp?frame=true

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"George Evans" <noreply@xxxxxxxxxxxxx> wrote in message
news:OZIyf9uwGHA.4576@xxxxxxxxxxxxxxxxxxxxxxx
Very nice. I got an exported this, just need to figure out how to
email this information. I guess a command line SMTP program.

Any thoughts?


"Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx> wrote in message
news:uZk06auwGHA.4576@xxxxxxxxxxxxxxxxxxxxxxx
For something like this I would recommend using findexpacc instead of
oldcmp, I set it up specifically to be scripted for cases like this...

http://www.joeware.net/win/free/tools/findexpacc.htm




--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


Joe Kaplan (MVP - ADSI) wrote:
My company uses a scheduled task that runs some .NET code that finds
the expiring passwords and emails the users based on our business
rules for expiration notification. This code is implemented based on
the code we show for finding password expiration on our book (see link
below). The implementation of this is detailed in ch 10, which
happens to be the freebie download chapter from the publisher. It is
linked on the main page of the site. The code samples may also be
downloaded for free.

If you don't want to write a little .NET app for this and would rather
write a script, it will probably be easier for you to use a tool like
Joe Richard's oldcmp tool (from www.joeware.net) than to try to
execute the queries directly in script, as formating the queries is a
little painful in VBS. You would just take the output from Joe's tool
to feed that into your script for doing the notifications.

You might also be able to buy something if you don't want to write
anything yourself. I can understand that, although I don't have an
immediate recommendation. Part of the trick with this kind of thing
is that you generally need to send your users to a website where they
can change their password (since they don't log into the domain,
they'll need some sort of UI for this!), so you'll need at least a
little configuration flexibility with whatever tool you end up with.

HTH,

Joe K.









.



Relevant Pages

  • Re: Email Password Expire Notifications
    ... Co-author of "The .NET Developer's Guide to Directory Services ... Joe Richards Microsoft MVP Windows Server Directory Services ... write a script, it will probably be easier for you to use a tool like ...
    (microsoft.public.windows.server.active_directory)
  • Re: Query for accounts that will expire
    ... If I may -- go ahead and post one Joe, ... Dean Wells [MVP / Directory Services] ... doing this query in .NET is particularly easy too. ... Please post back if 1) you're interested in the script and 2) you ...
    (microsoft.public.windows.server.active_directory)
  • Re: LDIFDE Error when trying to change passwords.
    ... Thanks for all of your help Joe, I am still recieving the same error with the ... The -h adds the encryption. ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... command or the bind command as I am not sure how to use them. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Email Password Expire Notifications
    ... If you want to write a script, Windows comes with pretty decent SMTP client ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)
  • Re: new to shell scripting
    ... > scripting I was try to write a script that check the content of ... the script on the command line. ... That can be gotten with the basename ... Joe ...
    (comp.unix.programmer)