Solved

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

Posted on 2006-10-26
2
180 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 54

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 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