• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

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!
0
bartrumb
Asked:
bartrumb
1 Solution
 
McKnifeCommented:
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

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now