AD AutoScripting

  • Thread starter Thread starter Chai
  • Start date Start date
C

Chai

Hi there,

I using Windows 2000 domain. I want to set all user
account so that their password never expired.

Because I got few thousands users, I try to use script to
auto the process.

After look few example and try it, I receive the error
message "ADSI does not support the properties" when I want
to set the accountExpires to 0 using the VB Script.

Any ideas or example?

Thanks.

Chai
 
-----Original Message-----
Hi there,

I using Windows 2000 domain. I want to set all user
account so that their password never expired.

Have you tried ADMODIFY? Put it into Google, and see if it
meets your requirements.

Daniel
 
Daniel,

ADModify will definitely do this for him. Good suggestion.

However, please note that there is a newer version - version 1.5g to be
exact - that was recently released. I do not think that it is available on
the FTP site just yet ( but I have not checked in a week or so ) . This
newer version resolves and issue with the 'Office' field.

If you would like the newer version please supply me with an e-mail address
and I will gladly send you the zipped file.

HTH,

Cary
 
I would download and install a free trial version of
Hyena http://www.systemtools.com. I've been using it for
six years, and have found it to be the best network
administration software out there. With it you can select
all of your users at once, rt click and get properties,
and set PWD Never Expires on all accounts at the same
time. I'm not sure why you would want to, but Hyena can
certainly do the job.

-wtmfn-
 
I have read about too many problems with Hyenna and WIN2000 AD. Granted, I
have not tried it yet. I might stick with ADModify for this to immediately
take care of this need and play with an evaluation version of Hyenna in a
lab environment before implementing it in a production environment.

Cary
 
While I don't recommend doing this, if you go get the dsquery/dsmod tools from a
Win2003 install you can do it like

dsquery * -limit 1000 -filter "&(objectcategory=person)(objectclass=user)" |
dsmod user -pwdneverexpires yes

This will do 1000 users, if you need to do more, change the limit size.
 
While this is a bit off-topic for this discussion and a reply is not
necessary, I'd like to point out that there are not any problems with
Hyena and Active Directory and never had been to my knowledge. I
should know: I manage the company that develops and supports Hyena and
have been involved with the product from day-one.

Since Hyena is used by hundreds of thousands of administrators every
day to manage their Windows network (including AD), we would know of
any problems rather quickly. And, we've been supporting AD for years
now; Hyena has been on the market for 7 years.

We are aware of some myths about usage of Hyena and any 3rd party tool
for Windows adminstration. Sometimes, Microsoft support technicians,
etc. shy aware from using 3rd party software. To make things worse,
if a customer has a problem and they are using a 3rd party piece of
software, most Microsoft support will first require that it be
uninstalled before helping with the problem. But this has nothing to
do with solving the problem at all.

Our support staff spend a great deal of time helping customers with
problems that have nothing to do with our software, but this is just
part of offering a product like Hyena. Hyena is entirely safe to use
in managing a Windows NT or Active Directory environment. We would
not be in business if it wasn't.

Kevin Stanush
SystemTools Software Inc.
http://www.systemtools.com
Home of 'Hyena' for Windows System Administration
 
Kevin,

Sorry for the delayed reply. Your reply is 100% not off topic. If you
develop the software that people say "causes problems" then you have every
right to say "hold on for a second".

In a situation where there is a problem and there is a third-party
application involved I would say that it would simply be good
troubleshooting to remove that software, see if the problem persists and,
hopefully, mark that off the list and go on to the next item. You are
probably correct in that the majority of the time Hyena is not causing the
problem. But I would bet that sometimes it is ( or at least contributing ).
Software is at times flaky. Even the best written, best tested software
can - in certain environments - cause problems.

Of course, you are correct that it is too easy to blame it on the 'third
party application'. I have not tried Hyena yet so I have no opinion one way
or the other ( I think that I might try Hyena now ). Please understand
that I was simply suggesting to Chai that ADModify will do this very nicely
and does not cost anything. I also strongly suggest to people that they
'play' with new software in a lab environment before implementing said
software in their production environment. That just makes sense to me.

Cary


Kevin Stanush said:
While this is a bit off-topic for this discussion and a reply is not
necessary, I'd like to point out that there are not any problems with
Hyena and Active Directory and never had been to my knowledge. I
should know: I manage the company that develops and supports Hyena and
have been involved with the product from day-one.

Since Hyena is used by hundreds of thousands of administrators every
day to manage their Windows network (including AD), we would know of
any problems rather quickly. And, we've been supporting AD for years
now; Hyena has been on the market for 7 years.

We are aware of some myths about usage of Hyena and any 3rd party tool
for Windows adminstration. Sometimes, Microsoft support technicians,
etc. shy aware from using 3rd party software. To make things worse,
if a customer has a problem and they are using a 3rd party piece of
software, most Microsoft support will first require that it be
uninstalled before helping with the problem. But this has nothing to
do with solving the problem at all.

Our support staff spend a great deal of time helping customers with
problems that have nothing to do with our software, but this is just
part of offering a product like Hyena. Hyena is entirely safe to use
in managing a Windows NT or Active Directory environment. We would
not be in business if it wasn't.

Kevin Stanush
SystemTools Software Inc.
http://www.systemtools.com
Home of 'Hyena' for Windows System Administration

"Cary Shultz [A.D. MVP]" <[email protected]> wrote in message
I have read about too many problems with Hyenna and WIN2000 AD. Granted, I
have not tried it yet. I might stick with ADModify for this to immediately
take care of this need and play with an evaluation version of Hyenna in a
lab environment before implementing it in a production environment.

Cary
 
Back
Top