FB
2008-06-28 19:06:01 UTC
DSQUERY COMPUTER and STALEPWD VS INACTIVE parameters
I´m testing the command to del a lot of computer accounts via Script
When i use the -stalepwd OR -inactive parameters, it returns very different
results than using BOTH parameters.
In the command:
dsquery computer -inactive 4 -stalepwd 30
The parameters are "ORed" ou "ANDed"?
-inactive 4 (weeks) is the same as -stalepwd (days)? So, the results have to
be the same. Bu it does not the same, really true, the results are very
different.
I don´t have ANY parameter blocking computer account password changes, but
sometimes a PC used in day-to-day operations is shown as a "old" PC account
on the AD
Why?
There is a secure way to delete old PCs withou the risk to delete "newest"
PC accounts?
I´m testing the command to del a lot of computer accounts via Script
When i use the -stalepwd OR -inactive parameters, it returns very different
results than using BOTH parameters.
In the command:
dsquery computer -inactive 4 -stalepwd 30
The parameters are "ORed" ou "ANDed"?
-inactive 4 (weeks) is the same as -stalepwd (days)? So, the results have to
be the same. Bu it does not the same, really true, the results are very
different.
I don´t have ANY parameter blocking computer account password changes, but
sometimes a PC used in day-to-day operations is shown as a "old" PC account
on the AD
Why?
There is a secure way to delete old PCs withou the risk to delete "newest"
PC accounts?