Solved

Windows 7 User Profile Service Error

Posted on 2010-11-09
4
1,580 Views
Last Modified: 2012-05-10
I enabled "Delete User Profiles Older than X number of days" on four test machines. These machines are running Windows 7 Enterprise.

At first, no old profiles were being deleted. I disabled Windows Defender (as a test) because it was scanning the NTuser.dat file in each local profile. This would change the modify date on the profile which prevented the User Profile Service from deleting it.

Now, the user profile service is cleaning up old profiles but it always leaves the old profile behind with a few empty folders under AppData. Event viewer shows error messages for each profile. They read.

Event 1533: User Profile Service

Windows cannot delete the profile directory C:\Users\USERNAME\. This error may be caused by files in this directory being used by another program.

DETAIL - The directory is not empty.
0
Comment
Question by:Joseph Moody
  • 3
4 Comments
 
LVL 24

Expert Comment

by:Awinish
ID: 34093275
Some files in profile is in use so it find difficult to delete as they are in access, as i have seen inorder to delete someone else profile sometime server has to be booted into normal or safe mode.

You can use UPHclean.

http://blogs.technet.com/b/uphclean/
http://sgwindowsgroup.org/blogs/arther/archive/2009/11/26/uphclean-beta-build-2-0-48-0.aspx
0
 
LVL 24

Accepted Solution

by:
Awinish earned 500 total points
ID: 34093303
0
 
LVL 24

Expert Comment

by:Awinish
ID: 34093365
0
 
LVL 22

Author Closing Comment

by:Joseph Moody
ID: 34136393
I ended up using this as a user profile management script. Thanks!
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question