By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,647 Members | 1,822 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,647 IT Pros & Developers. It's quick & easy.

Changing Passwords for all users in Active Directory

usafshah
100+
P: 104
Is there any simple way to change all the passwords for an Organization Unit or users in a group at once?


I want to set same passwords to all users !
Nov 27 '06 #1
Share this Question
Share on Google+
11 Replies


Colloid Snake
100+
P: 144
Is there any simple way to change all the passwords for an Organization Unit or users in a group at once?


I want to set same passwords to all users !

I would ask you to consider, just for the sake of security, using a random number generator and hash table to provide passwords to all accounts - then you'd have them on file, but one user wouldn't be able to access all accounts (if the script you want to create is general enough, you would end up changing the admin passwords as well, and users would know that too...).

Other than that, a VB script is probably the easiest way to go, though PERL, Python, and Java all have win32 modules or an equivalent, so that they can operate on Windows (I've never used one in C++, but I imagine there is one there as well).
Nov 27 '06 #2

swandi
P: 13
I would ask you to consider, just for the sake of security, using a random number generator and hash table to provide passwords to all accounts - then you'd have them on file, but one user wouldn't be able to access all accounts (if the script you want to create is general enough, you would end up changing the admin passwords as well, and users would know that too...).

Other than that, a VB script is probably the easiest way to go, though PERL, Python, and Java all have win32 modules or an equivalent, so that they can operate on Windows (I've never used one in C++, but I imagine there is one there as well).

Would you like to give an example code please?
Nov 28 '06 #3

Colloid Snake
100+
P: 144

Would you like to give an example code please?
I can't, actually. I was suggesting a language for him to research. I'm 99% sure you could do it in VB, but I personally have never programed VB. I have used PERL, but only to parse M$ logfiles, never to manipulate AD. I have also only heard that Python and Java have those modules - I have never used them.

Has anyone else out there tried something like this?
Nov 28 '06 #4

sashi
Expert 100+
P: 1,754
I can't, actually. I was suggesting a language for him to research. I'm 99% sure you could do it in VB, but I personally have never programed VB. I have used PERL, but only to parse M$ logfiles, never to manipulate AD. I have also only heard that Python and Java have those modules - I have never used them.

Has anyone else out there tried something like this?
Hi there,

Using VB & Windows Management Instrumentation (WMI) one should be able to change user password, am not sure if it's possible to change every users password at once. I need to check this out first, till then hang on guys. Take care.
Nov 28 '06 #5

usafshah
100+
P: 104
I'm still waiting ...
Nov 30 '06 #6

Colloid Snake
100+
P: 144
I'm still waiting ...
While I don't have a spare DC around to test on, I can point you in the right direction:

http://msdn2.microsoft.com/en-us/library/aa393964.aspx

That's Microsoft's WMI explanation, and then this looked pretty good too as an explanation of the internals:

http://cwashington.netreach.net/main...wmiscript.html

Try looking at those - I am very interested to see the implementation.
Nov 30 '06 #7

sashi
Expert 100+
P: 1,754
While I don't have a spare DC around to test on, I can point you in the right direction:

http://msdn2.microsoft.com/en-us/library/aa393964.aspx

That's Microsoft's WMI explanation, and then this looked pretty good too as an explanation of the internals:

http://cwashington.netreach.net/main...wmiscript.html

Try looking at those - I am very interested to see the implementation.
Hi there,

These are great links, thanks a million to you. Good luck & Take care.
Nov 30 '06 #8

usafshah
100+
P: 104
While I don't have a spare DC around to test on, I can point you in the right direction:

http://msdn2.microsoft.com/en-us/library/aa393964.aspx

That's Microsoft's WMI explanation, and then this looked pretty good too as an explanation of the internals:

http://cwashington.netreach.net/main...wmiscript.html

Try looking at those - I am very interested to see the implementation.


am not good in programming :S
Dec 1 '06 #9

Colloid Snake
100+
P: 144
am not good in programming :S
Yeah, I'm not much for the longer programs either, but it's a good skill to have.

(And the only way to develop it is to do it!)

Here's a tutorial of VB: http://www.vbtutor.net/vbtutor.html
Dec 1 '06 #10

sashi
Expert 100+
P: 1,754
Yeah, I'm not much for the longer programs either, but it's a good skill to have.

(And the only way to develop it is to do it!)

Here's a tutorial of VB: http://www.vbtutor.net/vbtutor.html
Hi there,

Well said, keep it up. Good luck & Take care.
Dec 1 '06 #11

P: 1
We are managing passwords with service explorer from Scriptlogic (scriptlogic.com ). Have a look at this tool!
Jan 19 '07 #12

Post your reply

Sign in to post your reply or Sign up for a free account.