Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Reset passwords of each user in an OU in AD with random passwords that are complex say 8 Apha numerical with a special character and email to users.

Hi,

Reset passwords of each user in an OU in AD with random passwords that are complex say 8 Apha numerical with a special character and email to users.

I need help to reset every users password each to be different and then email the password to user.

A defined data that needs to be in the body with a word attachment. thats going to be common.

regards
Sharath
Avatar of rlandquist
rlandquist
Flag of United States of America image

If the password is reset, how will the user logon to get their email?
Avatar of bsharath

ASKER

Its not that specific Domain password. its for a different domain but the email will reach him on his current logged in Domain
ASKER CERTIFIED SOLUTION
Avatar of jostrander
jostrander
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you... WIll this reset the password for each user different passwords?
Yes, each password will be unique.
I get this
D:\Reset_Password.vbs(145, 17) CDO.Message.1: The system cannot find the file specified.
You mentioned that you wanted to attach a Word document to the email.  If you haven't already, you'll need to specify the path to that file in the "User Variables" area

strEmailAttachment = "c:\myfile.doc"
I have mentioned the file. as
strEmailAttachment = "c:\UserMoveRpt.txt"
That should work fine too.  The error you see should only happen if that file does not already exist.  Is it on your c:\ already?  

thanks its perfect i wronly mentione D drive