Results 1 to 3 of 3

Thread: Script for last password change date

  1. #1
    Join Date
    Jan 2004
    Posts
    44

    Script for last password change date

    I need some help here to create script for finding the date of password changed for the last time by user. I searched on web and found some. But they are not working as I had expected. I am getting a error 80072030 on Get Object Command. The command that I am using is - Set objUser = GetObject ("LDAP://CN=<userid>,OU=Users,DC-abc,DC=corp"). Is this thing fine.

  2. #2
    Join Date
    Sep 2004
    Posts
    150
    Try this - Set objUser = GetObject ("LDAP://CN=<userid>,OU=Users,DC=abc,DC=corp") and then post here information what response you are getting. There is a issue with the command you are using. You can see that difference in the one that I had given you. If that does not work then try this - Set objUser = GetObject("LDAP://CN=userid,OU=user,DC=abc,DC=com")
    Wscript.Echo "Password last changed: " & objUser.PasswordLastChanged and then try back. I am sure this will surely help you.

  3. #3
    Join Date
    Oct 2005
    Posts
    40

    Re: Script for last password change date

    You can use PowerShell for the same. I am sure it will help you in finding the date of last password changed by the user. The command for the same is -
    Get-ADUser ‘UserName’ -properties PasswordLastSet | Format-List. You have to use this and you will be able to get appropriate date for the same.

Similar Threads

  1. Format Date and Time Script in ASP
    By Beter 2 Burn Out in forum Software Development
    Replies: 4
    Last Post: 10-02-2010, 02:22 AM
  2. Date Script at HTML
    By Chrisch in forum Software Development
    Replies: 3
    Last Post: 19-11-2009, 08:21 AM
  3. Script insert date in the name of my file
    By Viensterrr in forum Software Development
    Replies: 4
    Last Post: 31-10-2008, 07:18 PM
  4. Local Admin Password change script for Domain PC's
    By Dharitree in forum Window 2000 Help
    Replies: 3
    Last Post: 13-10-2008, 09:32 AM
  5. Replies: 3
    Last Post: 22-04-2007, 02:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,218,460.75231 seconds with 16 queries