Welcome, Guest
Please Login or Register.    Lost Password?
Change password multiple users (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Change password multiple users
Change password multiple users 7 Years, 4 Months ago Karma: 0  
You must use a vbs script to change passwords for multiple users:

dim OutPutList

dim Password

Set ObjOU = GetObject("LDAP://ou=Class,dc=contoso,dc=msft"

ObjOU.Filter = Array("User"

OutputList = ""

Password = "PassW0rd"

For Each objUser in ObjOU

objUser.SetPassword Password

OutputList = Outputlist & objUser.Name & " - " & password & vbcrlf


Wscript.echo OutputList

Save the codes to a .vbs, change the LDAP string.

To save the output to a file, use this command "cscript script.vbs /Nologo >> Results.txt"
File Attachment:
File Name: changepasswd.txt
File Size: 342
admin (Admin)
Posts: 88
User Offline Click here to see the profile of this user
Logged Logged  
The administrator has disabled public write access.  
Go to top