Password Expiration Script

Discussion in 'Scripting' started by Barrycuda, Feb 7, 2007.

  1. Barrycuda

    Barrycuda Guest

    Hope someone can help
    Occasionally I will have to create a user on our domain that does not use
    our email server (exchange). So the users account is not mail enabled.
    We have a 3rd party application that sends password expiration reminders to
    the mail enabled users based on our password expiration GPO.
    I am looking for someway to notify the users whose account is not mail
    enabled a message.

    I could enter the users personal email address on the General tab of Active
    Directory Users and Computers, but I would need a script of some kind
    that would look at that field. I put those users into a seperate OU if that
    makes it easier.

    Ideally I would like the script to run only against this particular OU as I
    don't want it to have duplicate email messages to my domain users.

    Thanks
     
    Barrycuda, Feb 7, 2007
    #1
    1. Advertisements

  2. See tip 10750 ยป How can I email a password expiration warning to my domain users?
    in the 'Tips & Tricks' at http://www.jsifaq.com

    Jerold Schulman
    Windows Server MVP
    JSI, Inc.
    http://www.jsiinc.com
     
    Jerold Schulman, Feb 8, 2007
    #2
    1. Advertisements

  3. dear Jerold
    I make a folder at c:\pwwarn and conatin all followinf in that

    ADFind.exe
    univdate.bat
    Date2YMD.bat
    DatePorM.bat
    BLAT.exe

    but as i run pwwarn.bat

    it return

    C:\PWwarn>PwWarn.bat
    *** "krbtgt": Your account expires on 12/7/2006. No Email configured.
    There is no such user: ICFPINDIA$.

    More help is available by typing NET HELPMSG 3755.

    *** "ICFPINDIA$": Your account expires on 12/7/2006. No Email configured.
    .. . "62DA6D04-2ECD-4773-B": Your account expires on 12/11/2006.
    .. . "akumar": Your account expires on 2/20/2007.
    .. . "postmaster": Your account expires on 2/26/2007.
    .. . "anildhar": Your account expires on 2/25/2007.
    .. . "vinods": Your account expires on 2/25/2007.
    .. . "prateeks": Your account expires on 2/25/2007.
    .. . "anthonynair": Your account expires on 2/25/2007.

    all is fine but mail is not sent to user
    please tell me what is issue.
     
    Vimal Rastogi, Feb 23, 2007
    #3
  4. dear Jerold
    I make a folder at c:\pwwarn and conatin all followinf in that

    ADFind.exe
    univdate.bat
    Date2YMD.bat
    DatePorM.bat
    BLAT.exe

    but as i run pwwarn.bat

    it return

    C:\PWwarn>PwWarn.bat
    *** "krbtgt": Your account expires on 12/7/2006. No Email configured.
    There is no such user: ICFPINDIA$.

    More help is available by typing NET HELPMSG 3755.

    *** "ICFPINDIA$": Your account expires on 12/7/2006. No Email configured.
    .. . "62DA6D04-2ECD-4773-B": Your account expires on 12/11/2006.
    .. . "akumar": Your account expires on 2/20/2007.
    .. . "postmaster": Your account expires on 2/26/2007.
    .. . "anildhar": Your account expires on 2/25/2007.
    .. . "vinods": Your account expires on 2/25/2007.
    .. . "prateeks": Your account expires on 2/25/2007.
    .. . "anthonynair": Your account expires on 2/25/2007.

    all is fine but mail is not sent to user
    please tell me what is issue.
     
    Vimal Rastogi, Feb 23, 2007
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.