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,如需转载请自行联系原作者
 
相关文章
|
4月前
|
Windows
【Windows】 Win10文件目录的删除,新建等需要手动刷新操作 亲测有效
【Windows】 Win10文件目录的删除,新建等需要手动刷新操作 亲测有效
171 0
VS2010:把项目由WIN32改为x64
VS2010:把项目由WIN32改为x64
347 0
win10 下提示“请等待当前程序完成卸载或更改”解决方案
当我们打开控制面板选择程序和功能进行程序卸载的时候,一旦当你当前的程序卸载还未完成时,你又去卸载另一个程序的时候,就会出现如下的提示“请等待当前程序完成卸载或更改”
1206 0
win10 下提示“请等待当前程序完成卸载或更改”解决方案
|
Windows
Windows 技术篇-win10运行没有、不保存历史记录解决方法,win10文件夹浏览记录为空问题解决
Windows 技术篇-win10运行没有、不保存历史记录解决方法,win10文件夹浏览记录为空问题解决
400 0
Windows 技术篇-win10运行没有、不保存历史记录解决方法,win10文件夹浏览记录为空问题解决
|
Shell Windows
更改开机默认不显示explorer.exe,直接启动自己写的EXE程序方法
原文:更改开机默认不显示explorer.exe,直接启动自己写的EXE程序方法 更改开机默认不显示explorer.exe,直接启动自己写的EXE程序的函数: bool UpdateWinlogon(CString _...
1309 0