Re: Reset the passwords for 100s of user accounts
From: Evan Erwee [MVP] (evan_at_erwee.com.REMOVE)
Date: 04/20/04
- Previous message: mike: "Re: Moving users from Win2000 AD to ADAM how to???"
- In reply to: SizzleMaster: "Reset the passwords for 100s of user accounts"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Apr 2004 22:30:39 +0200
You could use a CMD file.
Example
Create a file with all the logonnames. In my example I have used
'UserList.in'. Put this file in a directory, e.g. c:\PsswReset.
The 'UserList.in' look's like this:
UserA
UserB
UserC
You can export this from Excel.
Then creat a batch file in the same directory called: 'ResetPW.cmd'
The 'ResetPW.cmd' look like this;
@echo off
FOR /F "eol= " %%i in (UserList.in) do NET USER %%i SomePssw /DOMAIN
The batch file will loop thru all the user resseting their passwords to
'SomePssw'. Extend the batch file to do other user functions.
You will notice the following event in the eventlog if 'success' auditing is
enabled.
Event Type: Success Audit
Event Source: Security
Event Category: Account Management
Event ID: 642
Date: 4/20/2004
Time: 10:27:52 PM
User: NT AUTHORITY\SYSTEM
Computer: SRV01
Description:
User Account Changed:
Target Account Name: UserA
Target Domain: INTERNAL
Target Account ID: INTERNAL\UserA
Caller User Name: SRV01$
Caller Domain: INTERNAL
Caller Logon ID: (0x0,0x3E7)
Privileges: -
Changed Attributes:
Sam Account Name: -
Display Name: -
User Principal Name: -
Home Directory: -
Home Drive: -
Script Path: -
Profile Path: -
User Workstations: -
Password Last Set: 4/20/2004 10:27:52 PM
Account Expires: -
Primary Group ID: -
AllowedToDelegateTo: -
Old UAC Value: -
New UAC Value: -
User Account Control: -
User Parameters: -
Sid History: -
Logon Hours: -
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
"SizzleMaster" <larry@datasculpting.com> wrote in message
news:O$O6mlwJEHA.1764@TK2MSFTNGP12.phx.gbl...
> I've imported 100s of accounts from Excel into AD on a Win2003 Ent.
Edition
> Server. I can't utilize the "user must change password on next login"
> option for what I'm using these accounts for (if set that way, they can't
> log in at all into a SharePoint website, don't know why).
>
> Is there any way to reset their passwords to a single password in one fail
> swoop without doing them individually?
>
> Thanks for any assistance.
>
>
- Previous message: mike: "Re: Moving users from Win2000 AD to ADAM how to???"
- In reply to: SizzleMaster: "Reset the passwords for 100s of user accounts"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|