vbscript script needed to get the status of the pwdLastSet for a user

Author Message
robertazo

  • Total Posts : 3
  • Scores: 0
  • Reward points : 0
  • Joined: 1/8/2012
  • Status: offline
vbscript script needed to get the status of the pwdLastSet for a user Monday, January 16, 2012 3:59 AM (permalink)
0
Hello,
I have some trouble by getting the status of the pwdLastSet attribute for a user respective for several users. Is there a good way to get an statement like yes/no, True/False or something similar. I need only to get the status of the checkbox "User must change password at next logon", that means if it's checked or not with vbscript.
It would be great if someone could give me a hint. Thanks!
 
 
#1
    59cobalt

    • Total Posts : 981
    • Scores: 91
    • Reward points : 0
    • Joined: 7/17/2011
    • Status: offline
    Re:vbscript script needed to get the status of the pwdLastSet for a user Monday, January 16, 2012 9:18 AM (permalink)
    0
    When in doubt, read the documentation.
     
    #2
      robertazo

      • Total Posts : 3
      • Scores: 0
      • Reward points : 0
      • Joined: 1/8/2012
      • Status: offline
      Re:vbscript script needed to get the status of the pwdLastSet for a user Tuesday, January 17, 2012 10:15 PM (permalink)
      0
      Hello 59cobalt,
      first of all, thanks for your answer -:)
      However I was already aware of how to change the pwdLastSet attribut. I was rather searching for a possibility to get indicated if the checkbox "User must change password at next logon" is checked or not.
      Thanks anyway!
       
      #3
        59cobalt

        • Total Posts : 981
        • Scores: 91
        • Reward points : 0
        • Joined: 7/17/2011
        • Status: offline
        Re:vbscript script needed to get the status of the pwdLastSet for a user Tuesday, January 17, 2012 10:30 PM (permalink)
        0
        robertazo
        However I was already aware of how to change the pwdLastSet attribut. I was rather searching for a possibility to get indicated if the checkbox "User must change password at next logon" is checked or not.
        Re-read the first paragraph of the abovementioned article.
         
        #4
          ebgreen

          • Total Posts : 8229
          • Scores: 98
          • Reward points : 0
          • Joined: 7/12/2005
          • Status: online
          Re:vbscript script needed to get the status of the pwdLastSet for a user Wednesday, January 18, 2012 3:14 AM (permalink)
          0
          I'll even quote the pertinent portion for you:
           
          "If this value is set to 0 and the User-Account-Control attribute does not contain the UF_DONT_EXPIRE_PASSWD flag, then the user must set the password at the next logon."
          "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
          Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
          http://www.visualbasicscript.com/m_47117/tm.htm
           
          #5
            robertazo

            • Total Posts : 3
            • Scores: 0
            • Reward points : 0
            • Joined: 1/8/2012
            • Status: offline
            Re:vbscript script needed to get the status of the pwdLastSet for a user Wednesday, January 18, 2012 8:47 PM (permalink)
            0
            yep, I already read that sentece and tried to go for it but it's not as straight as it looks like.
            I will go for the links posted by you and will see how it goes -:)
            So far than, Thank you to you both ebgreen and 59cobalt!
            by the way, how can I mark this thread as solved?
             
            #6

              Online Bookmarks Sharing: Share/Bookmark

              Jump to:

              Current active users

              There are 0 members and 1 guests.

              Icon Legend and Permission

              • New Messages
              • No New Messages
              • Hot Topic w/ New Messages
              • Hot Topic w/o New Messages
              • Locked w/ New Messages
              • Locked w/o New Messages
              • Read Message
              • Post New Thread
              • Reply to message
              • Post New Poll
              • Submit Vote
              • Post reward post
              • Delete my own posts
              • Delete my own threads
              • Rate post

              2000-2012 ASPPlayground.NET Forum Version 3.9