Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot Delete Local Profile

Status
Not open for further replies.

TheSponge

Technical User
Jul 2, 2003
442
GB
Hello,

My profile seems to have become corrupt, So I deleted my profile on the server and recreated, when I logged back onto my PC, it loaded my local profile....It shouldnt, because my user profiles are specified in AD to look at \\servername\profiles\username...

So I tried to delete my profile on the local machine while logged in as local admin...it wouldnt let me? the delete button was greyed out, so I went directly into the documents and settings and tried to delete from there, it said it couldnt delete certain files? user.dat, ntuser.dat e.t.c, it said they were in use? Impossible I say...

Please can someone help, thanks
 
I have seen this once on an XP Pro PC - where the delete button was greyed out, when trying to delete the Local Profile (user had a roaming profile).
Logon to the PC with an account with admin rights -
Run chkdsk / F on the drive with the profile on - reboot.
Log back in with an admin acct - the profile will then delete. (or at least it did on the PC, I was working on)

Ian
 
I have run into this before too on everything from NT4, Win2K and XP.

If you boot into Safe Mode with Command Prompt, you will be able to delete the profile. I have found that on some machines you need to delete files individually and can't do a del *.* (I have no idea why).
 
Are there any events showing in your eventviewer such as:
EventID 1000 - Userenv for 2000
EventID 1517 - Userenv for XP

If so, you may want to take a look at this free software called UPHClean:
This program unlocks any registry keys and/or programs that cause this type of behavior when you logg off. Most likely, you can reboot your PC then it will let you delete your local profile. Installing this software will unlock the hung key/program and allow you log off/on properly. I have installed in multiple 2000 and XP PC's.
 
Might be a little dangerous, but why don't you login as Administrator, then run "Process Explorer" from
Kill the file handles to your user profile files, then try to delete...
 
Sorry for the late reply,

Thanks guys, the problem is now solved, I had an extremely dodgy machine!!

New profile is now working, thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top