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,如需转载请自行联系原作者
 
相关文章
|
7月前
|
Windows
【Windows】 Win10文件目录的删除,新建等需要手动刷新操作 亲测有效
【Windows】 Win10文件目录的删除,新建等需要手动刷新操作 亲测有效
222 0
|
安全 UED Windows
[Win7/Win10/Win11]如何有效地关闭自动更新(Windows Update)
[Win7/Win10/Win11]如何有效地关闭自动更新(Windows Update)
2296 0
|
Windows
Windows 技术篇 - win10开机启动项设置方法,windows启动项里没有的程序设置开机启动方法
Windows 技术篇 - win10开机启动项设置方法,windows启动项里没有的程序设置开机启动方法
972 0
Windows 技术篇 - win10开机启动项设置方法,windows启动项里没有的程序设置开机启动方法
|
Windows
Windows 技术篇-win10运行没有、不保存历史记录解决方法,win10文件夹浏览记录为空问题解决
Windows 技术篇-win10运行没有、不保存历史记录解决方法,win10文件夹浏览记录为空问题解决
423 0
Windows 技术篇-win10运行没有、不保存历史记录解决方法,win10文件夹浏览记录为空问题解决