Sunday, January 13, 2013

Rename or move a User Profile folder/identify SID

Mshiyas Blog

"Don't be so humble – you are not that great." Golda Meir (1898-1978)

Menu7

How to rename or move a User Profile folder?/identify SID/create a duplicate of a user profile

      Rate ThisRenaming a user account via Computer Management console or the User  Accounts applet does not rename the associated user profile folder. Here is how  to manually rename the user profile folder in Windows XP

Rename the User Profile folder using Windows Explorer

Logon to an admin account that is not the account being renamed.Open the Documents and Settings folder, by typing this in Start, Run dialog:%systemdrive%\Documents and SettingsThe list of folders will be displayed. Select the corresponding folder of the  user account that you want to rename.

Example

%SystemDrive%\Documents and Settings\OldUsernamebecomes%SystemDrive%\Documents and Settings\NewUsernameNext step is to notify the system that the user profile path has changed.

CHANGING THE PROFILEIMAGEPATH VALUE IN THE REGISTRY

ProfileImagePath registry value

The ProfileList registry key contains some sub-keys, which are nothing but the list of User Account Security  Identifiers (SID). Each of the SID represents an Account. The key is located  here:HKEY_LOCAL_MACHINE \ SOFTWARE\ Microsoft\ Windows NT \ CurrentVersion \ ProfileList

Identify the SID for your User account, and change the Profile path

To know the SID for your user account, you may use the  script sidlist.vbsDownload the script and run it.  (The User Account names and SIDs will be listed in a log file, and opened  automatically.)Note down the SID for  your account.Then, in the Registry Editor, select the correct SID that belongs to your  user account.In the right-pane, double-click the ProfileImagePath value and change  the profile path. ( The ProfileImagePath stores the full path  of the User account home folder. )Close Registry Editor, and restart Windows. See if you're able to logon to  that user profile successfully. Additionally, to verify if the path has been  changed successfully, type SET in the Command Prompt. In case you find any  abnormal behavior when running an application, you may undo the above  procedure.

To identify the user's profile path by the user SID

Use the Getsid tool from the Windows Server Resource Kit to obtain the SID. At a command prompt, use the following syntax:getsid \\ComputerName UserName \\ComputerName UserNameFor example:getsid \\windowsxp joedoe \\windowsxp joedoeThe results look something like this:= The SID for account WINDOWSXP\joedoe is S-1-5-21-1708537768-1993962763-1957994488-1003After you obtain the user SID, start Registry Editor (Regedit.exe or Regedt32.exe), and then select the user SID under the following registry key:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileListTo create a duplicate of a user profile (with a different user name), use these steps:Create a new user accountLogon to that account to initialize the newly created profileLog off from the newly created profileLogin as Administrator (the built-in administrator account)Open Control Panel, double-click SystemClick the Advanced tabClick Settings under User ProfilesSelect a profile to copy from and choose Copy ToBrowse to the profile to copy to (C:\Documents and Settings\newuser)In Permitted to use, click ChangeIn the Select User or Group dialog box, type the new user account name and press ENTER.About these ads

No comments:

Post a Comment