Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - pwdLastSet attribute not updating

Reply
 
Old 10-13-2008   #1 (permalink)
James Whitlow


 
 

pwdLastSet attribute not updating

We have a VBScript that runs on a schedule that disables old computer
objects & deletes really old computer objects from the domain. For the most
part, the script works as designed. However, it has on several occasions
disabled computers that are still active. In looking at the attribute on one
of these computers, I see that the 'pwdLastSet' date is less than an hour
newer that 'createTimeStamp'. The 'whenChanged' & 'lastLogonTimestamp'
attributes are being updated, but 'pwdLastSet' is not. Can anyone explain
what might be causing this on just a few of the computers in the domain?



My System SpecsSystem Spec
Old 10-25-2008   #2 (permalink)
Gerry Hickman


 
 

Re: pwdLastSet attribute not updating

Hi,

If we're talking computer accounts, isn't it better to use the
lastLogonTimestamp instead of pwdLastSet?

James Whitlow wrote:
Quote:

> We have a VBScript that runs on a schedule that disables old computer
> objects & deletes really old computer objects from the domain. For the most
> part, the script works as designed. However, it has on several occasions
> disabled computers that are still active. In looking at the attribute on one
> of these computers, I see that the 'pwdLastSet' date is less than an hour
> newer that 'createTimeStamp'. The 'whenChanged' & 'lastLogonTimestamp'
> attributes are being updated, but 'pwdLastSet' is not. Can anyone explain
> what might be causing this on just a few of the computers in the domain?
>
>

--
Gerry Hickman (London UK)
My System SpecsSystem Spec
Old 10-25-2008   #3 (permalink)
James Whitlow


 
 

Re: pwdLastSet attribute not updating

"Gerry Hickman" <gerry666uk2@xxxxxx> wrote in message
news:%23TkdUetNJHA.4372@xxxxxx
Quote:

> James Whitlow wrote:
Quote:

>> We have a VBScript that runs on a schedule that disables old computer
>> objects & deletes really old computer objects from the domain. For the
>> most part, the script works as designed. However, it has on several
>> occasions disabled computers that are still active. In looking at the
>> attribute on one of these computers, I see that the 'pwdLastSet' date is
>> less than an hour newer that 'createTimeStamp'. The 'whenChanged' &
>> 'lastLogonTimestamp' attributes are being updated, but 'pwdLastSet' is
>> not. Can anyone explain what might be causing this on just a few of the
>> computers in the domain?
>>
>>
> Hi,
>
> If we're talking computer accounts, isn't it better to use the
> lastLogonTimestamp instead of pwdLastSet?
Thanks for the reply, Gerry!

In the original script I wrote, I was using 'whenChanged'. During a
meeting with Microsoft, they advised using 'pwdLastSet'. In searching
postings on the subject on the web and Usenet, 'pwdLastSet' seemed to be the
popular choice. Anyway, the change from 'whenChanged' to 'pwdLastSet' was
not my choice. I actually argued against it based on the problems it was
creating with the deletions of computers that should not have been deleted.
In all of the research I did on the web, I did not see anyone else
complaining about the problem, so I decided to post a message seeing if
anyone else was experiencing this issue. It has affected on a very small
numbers of computer in a very large pool, so it is not a huge problem, but
one I would like to solve if possible so that I have an option other than
reimaging the computer.

I tried solving the issue of computer not updating their 'pwdLastSet'
attribute by deleting their computer accounts in AD, recreating it, moving
the computer to a workgroup & then rejoining the domain, but this did not
work. The get a new 'pwdLastSet' from the initial joining, but it still
never updates.


My System SpecsSystem Spec
Old 10-25-2008   #4 (permalink)
Richard Mueller [MVP]


 
 

Re: pwdLastSet attribute not updating


"James Whitlow" <jwhitlow.60372693@xxxxxx> wrote in message
news:ePzY9rtNJHA.1160@xxxxxx
Quote:

> "Gerry Hickman" <gerry666uk2@xxxxxx> wrote in message
> news:%23TkdUetNJHA.4372@xxxxxx
Quote:

>> James Whitlow wrote:
Quote:

>>> We have a VBScript that runs on a schedule that disables old
>>> computer objects & deletes really old computer objects from the domain.
>>> For the most part, the script works as designed. However, it has on
>>> several occasions disabled computers that are still active. In looking
>>> at the attribute on one of these computers, I see that the 'pwdLastSet'
>>> date is less than an hour newer that 'createTimeStamp'. The
>>> 'whenChanged' & 'lastLogonTimestamp' attributes are being updated, but
>>> 'pwdLastSet' is not. Can anyone explain what might be causing this on
>>> just a few of the computers in the domain?
>>>
>>>
>> Hi,
>>
>> If we're talking computer accounts, isn't it better to use the
>> lastLogonTimestamp instead of pwdLastSet?
>
> Thanks for the reply, Gerry!
>
> In the original script I wrote, I was using 'whenChanged'. During a
> meeting with Microsoft, they advised using 'pwdLastSet'. In searching
> postings on the subject on the web and Usenet, 'pwdLastSet' seemed to be
> the popular choice. Anyway, the change from 'whenChanged' to 'pwdLastSet'
> was not my choice. I actually argued against it based on the problems it
> was creating with the deletions of computers that should not have been
> deleted. In all of the research I did on the web, I did not see anyone
> else complaining about the problem, so I decided to post a message seeing
> if anyone else was experiencing this issue. It has affected on a very
> small numbers of computer in a very large pool, so it is not a huge
> problem, but one I would like to solve if possible so that I have an
> option other than reimaging the computer.
>
> I tried solving the issue of computer not updating their 'pwdLastSet'
> attribute by deleting their computer accounts in AD, recreating it, moving
> the computer to a workgroup & then rejoining the domain, but this did not
> work. The get a new 'pwdLastSet' from the initial joining, but it still
> never updates.
>
The whenChanged attribute is not replicated. A different value for each
object is saved on every DC. The pwdLastSet attribute is better because it
is replicated.

Possibly the problem computers have a group policy setting "Disable machine
account password changes". See this link:

http://technet.microsoft.com/en-us/l.../cc785826.aspx

By default each computer should request a new password every 30 days, but
this setting can be modified by policy. See:

http://technet.microsoft.com/en-us/l.../cc781050.aspx

Possibly you can find a Group Policy that applies to the problem computers.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Old 10-25-2008   #5 (permalink)
James Whitlow


 
 

Re: pwdLastSet attribute not updating

"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
message news:uuXCCEuNJHA.2100@xxxxxx
Quote:

>
> The whenChanged attribute is not replicated. A different value for each
> object is saved on every DC. The pwdLastSet attribute is better because it
> is replicated.
>
> Possibly the problem computers have a group policy setting "Disable
> machine account password changes". See this link:
>
> http://technet.microsoft.com/en-us/l.../cc785826.aspx
>
> By default each computer should request a new password every 30 days, but
> this setting can be modified by policy. See:
>
> http://technet.microsoft.com/en-us/l.../cc781050.aspx
>
> Possibly you can find a Group Policy that applies to the problem
> computers.
Thanks, Richard! Good information, as always!

I out for a week, but will investigate the information when I return.
These computers are in the same OU and, to the best of my knowledge, have
the same policies applied to them. There are less than a dozen out of
thousands with this issue, so I think it is some type of corruption on the
computer itself (considering the domain account in AD has been recreated).


My System SpecsSystem Spec
Old 10-26-2008   #6 (permalink)
Al Dunbar


 
 

Re: pwdLastSet attribute not updating


"James Whitlow" <jwhitlow.60372693@xxxxxx> wrote in message
news:ePzY9rtNJHA.1160@xxxxxx
Quote:

> "Gerry Hickman" <gerry666uk2@xxxxxx> wrote in message
> news:%23TkdUetNJHA.4372@xxxxxx
Quote:

>> James Whitlow wrote:
Quote:

>>> We have a VBScript that runs on a schedule that disables old
>>> computer objects & deletes really old computer objects from the domain.
>>> For the most part, the script works as designed. However, it has on
>>> several occasions disabled computers that are still active. In looking
>>> at the attribute on one of these computers, I see that the 'pwdLastSet'
>>> date is less than an hour newer that 'createTimeStamp'. The
>>> 'whenChanged' & 'lastLogonTimestamp' attributes are being updated, but
>>> 'pwdLastSet' is not. Can anyone explain what might be causing this on
>>> just a few of the computers in the domain?
>>>
>>>
>> Hi,
>>
>> If we're talking computer accounts, isn't it better to use the
>> lastLogonTimestamp instead of pwdLastSet?
>
> Thanks for the reply, Gerry!
>
> In the original script I wrote, I was using 'whenChanged'.
I like that attribute, as it is displayed legibly in ADU&C and when
extracted by csvde, ldifde, ADO, or other scripting techniques.

Unfortunately, I believe that "whenChanged" records the last change made to
the object in AD, so you have to be sure that no administrators are adding
comments or moving it to an alternate OU.

/Al
Quote:

> During a meeting with Microsoft, they advised using 'pwdLastSet'. In
> searching postings on the subject on the web and Usenet, 'pwdLastSet'
> seemed to be the popular choice. Anyway, the change from 'whenChanged' to
> 'pwdLastSet' was not my choice. I actually argued against it based on the
> problems it was creating with the deletions of computers that should not
> have been deleted. In all of the research I did on the web, I did not see
> anyone else complaining about the problem, so I decided to post a message
> seeing if anyone else was experiencing this issue. It has affected on a
> very small numbers of computer in a very large pool, so it is not a huge
> problem, but one I would like to solve if possible so that I have an
> option other than reimaging the computer.
>
> I tried solving the issue of computer not updating their 'pwdLastSet'
> attribute by deleting their computer accounts in AD, recreating it, moving
> the computer to a workgroup & then rejoining the domain, but this did not
> work. The get a new 'pwdLastSet' from the initial joining, but it still
> never updates.
>

My System SpecsSystem Spec
Old 11-10-2008   #7 (permalink)
jhk


 
 

Re: pwdLastSet attribute not updating

vvvbcbcb
"James Whitlow" <jwhitlow.60372693@xxxxxx> сообщил/сообщила в
новостях следующее: news:OqFgetXLJHA.5060@xxxxxx
Quote:

> We have a VBScript that runs on a schedule that disables old computer
> objects & deletes really old computer objects from the domain. For the
> most part, the script works as designed. However, it has on several
> occasions disabled computers that are still active. In looking at the
> attribute on one of these computers, I see that the 'pwdLastSet' date is
> less than an hour newer that 'createTimeStamp'. The 'whenChanged' &
> 'lastLogonTimestamp' attributes are being updated, but 'pwdLastSet' is
> not. Can anyone explain what might be causing this on just a few of the
> computers in the domain?
>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
pwdLastSet chnge value VB Script
Displaying pwdlastset property of computer account in Active Directory in useful format PowerShell
"Date Accessed" attribute not updating Vista file management
How to insert the "modified time" attribute in "date taken" attribute in batch mode-in vista or theough a software? Vista file management
ADSI pwdLastSet (to UTC or not to UTC) PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
╘ Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46