WINDOWS 7 手动删除用户配置文件后,只能使用临时配置文件的问题

在XP时代,如果将用户的配置文件删除了,用户在登录就会自动重新创建一个配置文件

但在WINDOWS 7不行,删除用户配置文件后,不会自动创建用户的配置文件,下次登录会一直使用临时配置文件

 

原因:

如果使用命令提示符或 Windows 资源管理器手动删除用户配置文件,则可能出现此问题。手动删除的配置文件不会删除注册表中配置文件列表中的安全标识符 (SID)。

警告:Microsoft 建议不要将此方法作为删除计算机中用户配置文件的标准方法。记录和支持的方法是使用系统属性中“高级系统设置”的“用户配置文件”设置。对于应用程序来说,使用“DeleteProfile”API 即可提供此功能。

如果存在 SID,则 Windows 将通过使用指向到不存在的路径 ProfileImagePath 加载配置文件。因此,无法加载该配置文件。

 

给出了解决办法:

1,下载微软提供的修复工具 下载   运行修复

或者

1,在系统属性中找到要删除的用户,删除用户配置文件(如果存在)

2,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

删除相应的 SID,然后单击“删除”

 

微软官方KB

http://support.microsoft.com/kb/947215/zh-cn


( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0004412240{main}( ).../index.php:0
20.08744270328Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08744270328Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.335711392320Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.336711416328Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.337911471656Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.338311498624require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.350611895112K2ControllerItem->execute( ).../k2.php:64
90.350611895112K2ControllerItem->display( ).../BaseController.php:710
100.365612539520K2ControllerItem->display( ).../item.php:78
110.365612539520K2ControllerItem->display( ).../controller.php:19
120.372812906576Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.375612926944K2ViewItem->display( ).../ViewController.php:102
140.511415718040K2ViewItem->display( ).../view.html.php:742
150.511415718040K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.515315890344include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0004412240{main}( ).../index.php:0
20.08744270328Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08744270328Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.335711392320Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.336711416328Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.337911471656Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.338311498624require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.350611895112K2ControllerItem->execute( ).../k2.php:64
90.350611895112K2ControllerItem->display( ).../BaseController.php:710
100.365612539520K2ControllerItem->display( ).../item.php:78
110.365612539520K2ControllerItem->display( ).../controller.php:19
120.372812906576Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.375612926944K2ViewItem->display( ).../ViewController.php:102
140.511415718040K2ViewItem->display( ).../view.html.php:742
150.511415718040K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.515315890344include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top