473,854 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing Passwords for all users in Active Directory

usafshah
104 New Member
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 8510
Colloid Snake
144 New Member
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 New Member
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 New Member

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 Recognized Expert Top Contributor
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 New Member
I'm still waiting ...
Nov 30 '06 #6
Colloid Snake
144 New Member
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 Recognized Expert Top Contributor
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 New Member
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 New Member
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

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

Similar topics

15
3893
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 folder view for ftp sites. I have some code, that seems to be "flaky" it works for me and some others, but not everyone. I really need to get a stable version. My asp code is below. Having it in ASP is fine, but it would be a bonus to have a ...
3
2516
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 "Computer" builtin OU -"Status" option in the users properties, allowing you to see the last connection date, etc...
1
4566
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 with the same login details as Windows to streamline the experience for users. It also must allow 1 user to log onto the application while another user is logged onto windows. I must know who is logged onto the
2
6000
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 use the System.DirectoryServices.ActiveDirectory namespace. I don't even know if this is the right way to go as I can't seem to find anything in that namespace that would help me query active directory for names. I can't use an LDAP query...
0
992
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") l.protocol_version = ldap.VERSION3 l.simple_bind_s('','') for i in l.search_ext_s("CN=Users,dc=ldap,dc=server",
1
1669
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 this.. thanks in advance private DirectoryEntry GetDirectoryObject() { DirectoryEntry oDE; oDE = new DirectoryEntry("LDAP://192.168.11.9","Administrator","asd12!@", AuthenticationTypes.Secure); return oDE;
2
1834
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 befoew I can do anything with the user. Obviously I will not know this information DirectoryEntry de = new DirectoryEntry(); de.Path = "LDAP://192.168.0.1/ CN=Users;DC=DEVELOPMENTDOMAIN";
2
3114
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 and i'll receive either true or false baclk. However, I dont think it's a good idea to be sending plain text passwords around. I'd like to make an md5 hash of the password before sending it, which I can do in javascript. The problem is that I...
0
1437
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 name> because: The system can not find the file specified. Also can not add users. However: NO EVENTS are being generated associated with this message in any
0
9901
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10685
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10763
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9518
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7918
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7082
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5750
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4162
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.