Win2008,Win7下清除用户配置文件

在Win2003,WinXP,Win2000下的用户配置文件,可通过直接在c:\documents and setting\下将其将删除或更名,当用户登录系统后会自动创建新的用户配置文件夹。
         而Win7和Win2008下,如果通过上述方式在c:\Users下删除用户配置文件,当用户再次登录系统时,不会建立新的用户配置文件夹,用户将以Temp临时文件夹运行。
          可通过下面方法解决该问题,将该用户在注册表中的profile键值删除即可。下面为原文操作方法。

How to Remove a user profile from Windows 2008 server

Description

To delete a user profile  in Windows 2003 Server it was required only to delete the user folder under 
C:\Documents and settings as administrator and the next time user logged in, a new profile was 
created for the user.

In Windows Server 2008, deleting a user profile is not that simple because security settings and user 
SID are saved on system registries. Deleting the user folder will not remove the profile completely. Instead it will load a temp profile each time the user tries to log in.
 

The user registry key and the user profile folder must be deleted to have Windows load the user profile correctly next time it logs in to the server.

- Open the registry editor by going to Start > Run. Type regedit and click OK.

- Navigate to the following:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\]

- Select each user key until you find the one belonging to the user you wish to delete. To determine which user a key belongs to, look in the ProfileImagePath field. Here you will see the user's folder path in the following format:

<System Root>\Users\<User Name> Example: C:\Users\johnd
- Delete the desired user key. Example: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-144906798-413291513-2040660509-5652

- Locate and delete the following user folder:  <System Root>\Users\<Username>\

The user should now be able to log in, creating a new profile.
 
以下为正确的清除用户配置文件方法:

Delete a user profile in Windows Server 2008 and later


本文转自William宋 51CTO博客,原文链接:http://blog.51cto.com/sting/486626,如需转载请自行联系原作者
 
上一篇:Win7配置IIS遇到问题及解决方法:IIS图标不见了


下一篇:XenApp / XenDesktop 7.6 初体验四 配置Win 8 模板和Personal vDisk