Need a script to enable a list of users. 2003 Active Directory

I have a list of about 70 users. I need there accounts to be re-enabled. Could somebody please right a script to re-enable these users.
The list is like this in a txt file.

bob
sally
jon
mark
etc.
etc.
etc.

Thank you!
bartrumbAsked:
Who is Participating?
 
McKnifeConnect With a Mentor Commented:
On the command line of your server
For /f %a in (c:\temp\users.txt) do net user %a /active:yes
0
 
Rich RumbleSecurity SamuraiCommented:
that will do it ;)
-rich
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.