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
#88
Change password multiple users 6 Years, 9 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

Next

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)
Administrator
Posts: 87
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top