Академический Документы
Профессиональный Документы
Культура Документы
com/kb/812339/en-us
Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps. Back to the top
1. 2. 3. 4. 5. 6.
Log on as the Administrator or as a user with administrator credentials. Click Start, and then click Control Panel. Click User Accounts. Under Pick a task, click Create a new account. Type a name for the user information, and then click Next. Click an account type, and then click Create Account.
3) open regedit, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList and export entire profilelist or each account individually (will be .reg file). 4) login in to new machine as administrator or user with admin rights. 5) copy profile(s) to Docs & Settings on new machine 6) run .reg file(s) by double-clicking and adding to registry. 7) re-assign permissions: right click on user profile --> Properties, Security tab, Add button, add user and hit ok, select user and check full control check box then hit Advanced button. On Advanced window, uncheck "inherit from parent..." and check "Replace permissions...". 8) logoff and have user login The One-Size-Fits-All Approach Let's try a step-by-step example. Suppose Jake once used a local account to log on to a machine named Old, and he'll now use a different local account to log on to a machine named New. Here's how to move his profile from Old to New. 1. Copy Jake's old profile folder from Old to New. The %USERPROFILE% environment variable identifies the location of Jake's profile. (You must log on as Jake for this method to work.) Alternatively, look in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID\ProfileImagePath subkey, where SID is Jake's SID. If you need to determine which SID is Jake's, use GetSID, which you can download from http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp. GetSID's syntax is a bit odd:
getsid
where accountname is the account's name and accountsource is the name of the machine that contains the account. Having the account name and machine name appear twice isn't a typoboth names must appear twice. In Jake's case, you would type
getsid \\Old jake \\Old jake
Now you have the SID and therefore the correct registry subkey. 2. After you find Jake's profile, copy it to the location in which New keeps profiles probably Documents and Settings, so his copied profile now sits in C:\documents and settings\jake. 3. Create Jake's new local account on New. Log on as Jake, then log off. Log back on to the system as a local administrator, and use GetSID to find Jake's new SID. 4. Open Jake's folder in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Double-click the ProfileImagePath subkey and replace
5.
6.
7.
8.
its contents with \%systemdrive%\documents and settings\jake. Close your registry editor. To fix the file and directory permissions, right-click the Jake directory and choose Properties. On the Security tab, add a permission for Jake in the typical way: Click the Add button, then choose the local Jake account. Back on the Security tab, give Jake full control by clicking the box under Allow next to Full Control. Close the dialog boxes. Start up regedt32 (in Win2K or NT) or regedit (in Windows Server 2003 or XP). Navigate to the HKEY_USERS hive. In regedt32, click Registry, Load Hive; in regedit, click File, Load Hive. In the Load Hive dialog box, navigate to C:\documents and settings\jake. Inside that folder, select ntuser.dat and click OK. A second Load Hive dialog box asks you to fill in a Key Name text field. Enter Jake and click OK. On your registry editor's main screen, open the HKEY_USERS hive. In regedt32, click the Jake folder and choose Security, Permissions; in regedit, right-click the Jake folder and choose Permissions. Click Add and add a new permission entry for Jake. Click OK to return to the Permissions for dialog box. Give Jake full control over his registry subkeys by clicking the box under Allow next to Full Control, then click OK to return to the registry editor's main screen. Now that you're finished with the modifications, you need to write the changes back to the file. To do so, click the HKEY_USERS\Jake folder. In regedt32, click Registry, Unload Hive; in regedit, select File, Unload Hive. Choose Yes to confirm the action. Exit your registry editor.