473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Changing Passwords for all users in Active Directory

usafshah
104 100+
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
11 8472
Colloid Snake
144 100+
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
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
144 100+

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
1,754 Expert 1GB
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
104 100+
I'm still waiting ...
Nov 30 '06 #6
Colloid Snake
144 100+
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
1,754 Expert 1GB
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
104 100+
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
144 100+
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
1,754 Expert 1GB
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
We are managing passwords with service explorer from Scriptlogic (scriptlogic.com ). Have a look at this tool!
Jan 19 '07 #12

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

Similar topics

15
by: scmiles | last post by:
I am trying to write an asp or aspx page that will create a virtual ftp directory to the users Active Directory home directory. That way a user can interact (drag/drop, copy/paste) via IE with...
3
by: Florent | last post by:
Hi all, We announce you the release of Power AD 1.3 , an OpenSource management console for Active Directory. What's new : -you can now see the users logged in your domain through the...
1
by: kevin.vaughan | last post by:
Hello Everyone, Is it possible to authenticate the windows password through Active Directory? If so, how would this be done. I have a login screen in my application and am trying to set it up...
2
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
0
by: stavenko | last post by:
Hello all. I'm trying ot get users from Active directory. using python-ldap. We have a windows network domain. So I tried this code: import ldap l = ldap.initialize("ldap://ldap.server")...
1
by: kapildev | last post by:
I an facing problem while changing password in active directory.. when i run the code it goes in get user function n returns null value.. why is it happening.. can anybody through some light on...
2
by: catherine | last post by:
Hi, I am trying to work out how I can disable / enable **another** users Active Directory account not my own via C#. If I create a directory entry like so I need to know the other users password...
2
by: theS70RM | last post by:
Hi, Im trying to create a secure login script for our company intranet. I've created a class to interface with the active directory, so I can test logins by sending the username and password...
0
by: =?Utf-8?B?RWQgT3R0bw==?= | last post by:
When changing a user's password in Active Directory Users... I get a strange error message (and the password change fails): Windows can not complete the password change for the user <insert user...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.