?
Solved

Windows 7 User Profile Service Error

Posted on 2010-11-09
4
Medium Priority
?
1,603 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
Here's a look at newsworthy articles and community happenings during the last month.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

771 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