Local User Account Password Expiration Date

Discussion in 'Scripting' started by John, Nov 10, 2004.

  1. John

    John Guest

    On a Windows 2003 server I'm trying to display how many days remain before
    the password expires for each local user account. I've done this for our
    Active Directory users but I'm having trouble getting something two work for
    local user accounts. I can get whether or not the password expires but not
    the date or the number of days left before it expires.

    Any assistance would be appreciated.

    Thanks
     
    John, Nov 10, 2004
    #1
    1. Advertisements

  2. John

    John Guest

    Andrew, thanks for the response. I was comparing the script you posted to
    the one located in the script repository
    (http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/pwds/uspwvb08.mspx)
    and didn't see any differences so it would get the local user accounts
    password expiration information off a memeber server rather than users in
    Active Direcotry. Maybe that was your intention.

    I guess my question now becomes, how do I modify the script so I can get the
    information from the local user accounts, not active directory?

    Thanks again.

    John
     
    John, Nov 11, 2004
    #2
    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.