Server Fault is a question and answer site for system and network administrators. 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

We have an issue with a file server, whenever a user account is deleted the ownership of his/her files returns to their SID number, which shows up in our report as unknown.

Has anyone found a way to change the owner of a file to another user in PowerShell 2.0?

After escalating the issue to Google, it seems that this can’t be done.

I find it hard to believe that we are the only ones that have come across this issue?

We could change the owner via the Gui, but this would take a long time as we have a few thousand folders to change owners on.

Any help or findings would be great.



share|improve this question
up vote 1 down vote accepted

This should help you manage your goal sir.

It can be done, there are just some specific requirements for the user attempting the the ownership change, as well as the new owner. The link I provided gives you all the details you should need.

share|improve this answer
Thanks Dave, that works a treat. Cheers...Gary – Gary Fawcett Sep 13 '10 at 3:34
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Mark Henderson Jun 23 '14 at 10:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.