Solved

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

Posted on 2006-10-26
2
178 Views
Last Modified: 2013-12-04
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
Comment
Question by:bartrumb
2 Comments
 
LVL 53

Accepted Solution

by:
McKnife earned 500 total points
ID: 17815452
On the command line of your server
For /f %a in (c:\temp\users.txt) do net user %a /active:yes
0
 
LVL 38

Expert Comment

by:Rich Rumble
ID: 17816121
that will do it ;)
-rich
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Recently, a new law in my state forced us to get a top-to-bottom analysis of all of our contract client's networks. While we have documentation, it was spotty at best for some - and in any event it needed to be checked against reality. That was m…
Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now