How do I rename a Profile folder without creating new user.

Hey all

Interisting one here. A user's profile corrupted and will not let her run any programs. I figured i'd just rename her profile folder and recreate it...It didnt work.

I get error Access is denied. make sure disk is not full or write protected. see uploaded file

Found this

But am unable to copy and paste...access denied

-Im logged in as Administrator.
-User is logged off.
-Have redone all security permissions.
-Hard drive has over 50Gb available.
-tried removing "read only". Reverts back to readonly.

Any ideas would be helpful.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian PiercePhotographerCommented:
technical_roccAuthor Commented:
Thanks for reply.

unfortunately, didnt work either
1. Download the Subinacl.exe from MS, save it into the Windows folder:

2. Restart in safe mode and log log in as Admin. If you even try to log in as the corrupt user, it'll deny you access later. For the purposese of this example, Open the command prompt and run the following:
subinacl.EXE /file "path to user profile" " /owner=administrators
subinacl.EXE  /subdirectories "path to user profile"" /grant=administrators=f

3. Rename the folder

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

I should have mentioned that his is fo Win XP, and there is a slightly easier way to do it in Vista and win 7
Sorry, found a type in one of the commands in step 2. It should be:
subinacl.EXE  /subdirectories "path to user profile\*" /grant=administrators=f
You could try to boot into "safe mode" and see if it works there, or you could perhaps see if you can change the profile via:

Right click "My Computer" and choose "Properties".  Click the "Advanced" tab.  There should be three little areas here, "Performance/User Profiles/Startup and Recovery" "Settings" under the "User Profiles".  

It should be the same in Wondows 2000, XP, Vista, and Windows 7...or at least, if it's different, it should be fairly obvious.

Try to delete the file from there.  I think before Vista (XP/2k), you have to right click to delete them.  But in Vista/XP you can just click the 'delete' button.

You can also try to change the account type.


You can copy the profile to another location using this tool, and then rename it, and see if it works.  If it does, your user should have all of it's resources.  If that works, you can try to delete the nasty profile at your own leisure.
If you didnt reboot at all, you wont be able to rename it as the OS still has an open handle to it.... Rebooting clears it.....
Johnb is correct, however if i remember correctly you should still be able to do it from the user profiles window that i described above.
technical_roccAuthor Commented:
Using a combination of the 2 answers resolved the issue. Thanks
technical_roccAuthor Commented:
Thanks guys. used a combination of btdownloads7 and johnb6767 advice to get it done.
technical_roccAuthor Commented:
Oh forgot to mention had to change the command string from btdownloads7.

subinacl.exe /subdirectories c:\documentsand settings\*.* /setowner=administrator

using /file didn't seem to work on directories
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Project Management

From novice to tech pro — start learning today.