Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've copied an entire profile's worth of folders from a Linux Samba share to a newly-formatted Windows Vista Home Premium system. For some reason, the entire hierarchy became owned by SYSTEM. Thus, when the user logs in, there are massive problems because the user does not have permission to view or do anything to their own files.

I'm trying to change ownership from SYSTEM to the user, but nothing is allowing me to do that. Even logged in as Administrator, and I'm not having any luck launching Explorer.exe from PsExec or RunAsSystem. Is there some utility that will completely reset permissions recursively on a folder and work in Vista Home Premium?

share|improve this question
up vote 3 down vote accepted

Option 1

Run a command prompt as administrator and then type takeown /F C:\Path\To\Profile\* /R

Option 2

Right Click on Profile folder and click Properties. Then, go to the Security tab and click Advanced. Go to the Owner tab, and click Edit... Then, select Other users or groups and type your username. Click Check Names, then OK. Select your username, then check "Replace owner on subcontainers and objects". Click Apply then OK.

You may also want to try attrib -S C:\Path\To\Profile\* /S /D at the command prompt if your files have the system attribute.

share|improve this answer
PS. In future, use the backticks (`) to escape code. The only downside is you have to use \` when writing code inside a code block. – Hello71 Mar 23 '11 at 2:18
Only been a member for a week thanks for the tip :) – Arctor Mar 23 '11 at 3:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .