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)
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!
|
|
|
|
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)
|
|
|
|
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)
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!
|
|
|
|
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)
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.
|
|
|
|
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)
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."
|
|
|
|
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)
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?
|
|
|
|