Release Date: 2002-02-05
Article content:
Author: adam@nsfocus.com
Date: 2002-02-02
In the daily management of Windows 2K, we are inevitably to reinstall Windows 2k, and the data backup can have many ways to implement, and the user's property backup can also pass the ADSI script or through the AddUsers tool (see Windows 2000 Resource Kits) is implemented, but the user's password, we may have to reset it. For a server with hundreds of users, the user's complaint will bring great pressure and trouble to the administrator. Now it is recommended for everyone. A good good Dongdong -copyPWD, used to back up the user's password.
download link:
http://www.sometips.com/soft/copypwd.zip
(The foreigner is still a cow, a multi-week completed the development of this play, the internal attachment code)
Here is the two machines used to be experiment, one is Chinese Windows 2000 Server (name S1), one is Chinese Windows 2000 Pro (name S2), both of which are STANDALONE machines. Of course, this tool can also be used in NT4's StandalOne and domain structure, but there is no test.
Gossip less, start experiment: We first perform the following operations on S1:
D: / copypwd> Net user adam iloveadam! / Add
The command successfully completed.
// Create a user ADAM, password is "IloveAdam!"
D: / copypwd> CopyPwd.exe dump> CopyPwd.txt
// All user password DUMP will come out, do not modify the copypwd.txt this file name, BTW, if this operation can not be completed on your machine, you can leave this page to continue to travel on the vast Internet, Forgot ME, just like forgetting the little flower in front of you in your window ... :)
D: / copypwd> Notepad copypwd.txt
/ / Modify the copypwd.txt file, will delete the panel that is not related to the ADAM, because we only test one user when testing, so only the ADAM is all, if you need to back up multiple users, you can keep it with Those users related LINES
We transfer the operation to S2, first we can test if you can perform copypwd dump on S2, if not, you will refer to unlucky, as for why some machines can do that the machine can not perform the discussion scope of this article, Everyone can contact PWDUMP's author-Jeremy Allison
C: /> Net User Adam IloveAdam! / Add
The command successfully completed.
// Create an ADAM account, here we use this account, of course, we can also create use addUsers so we can reserve more consultations related to users, and addUser can see Windows 2000 Resources Kits. Manual.
C: /> COPY //192.168.x.x/copypwd/copypwd.txt.
1 file has been copied.
/ / Copy the backup copypwwd.txt file to S2
C: /> COPYPWD.EXE SETSET Password for User ADAM
// Password recovery success, no matter what your password created on S2, the current password is "IloveAdam!"
It is worth noting that after we implement this operation, the user's "User Must Change Password At Next Logon" switch is enabled, it will encounter some problems when testing, so we must be in User Manager. Uncheck this option, of course, we can also implement it through the way of the command line, so I recommend a tool CUSRMGR inside the Resource Kits, first look at its help:
Cusrmgr Ver 1.0 Jan98 by g.zanzen (c) MCS Central EUROPE
Sets a Random Password to a User
USAGE: -U Username [-M // Machinename] // DEFAULT LOCALMACHINE
RESETTING Password Function
-P set to a random password
-P xxx sets password to xxx
User functions
-r xxx renames user to xxx
-d xxx deletes user xxx
Group functions
-RLG XXX YYY RENAMES LOCAL Group XXX To YYY
-RGG XXX YYY RENAMES GLOBAL Group XXX To YYY
-alg xxx add usr (-u username) to local group xxx
-AGG XXX Add User (-U Username) To Global Group XXX
-dlg xxx deletes user (-u username) from local group xxx
-dgg xxx deletes user (-u username) from global group xxx
SetProperties Functions
-c xxx sets comment to xxx
-f xxx sets full name to xxx
-U xxx sets userprofile to xxx
-n xxx sets logonscript to xxx
-h xxx sets homedir to xxx
-H x sets homedirdrive to x
s xxxx sets proty xxxx
-s xxxx resets proteTy XXXX
WHERE XXXX CAN Be Any of The Following Properties:
MustChangePassword
CannotChangePassword
PasswordneveRexpires
Accountdisabled
Accountlockout
Rasuser
[Old rules, the number of words is not enough to help join]
We activate the user's syntax:
D: / copypwd> Cusrmgr -u adam -s mustchangepassword
In this way, our operation is completed ...
【postscript】