https://stackoverflow.com/questions/17031552/how-do-you-take-file-ownership-with-powershell

I’ve figured this out. I can only be done with SE_RESTORE_NAME permissions.

I learned how to do that from: http://cosmoskey.blogspot.com/2010/07/setting-owner-on-acl-in-powershell.html

And with a comment from: http://fixingitpro.com/2011/07/08/set-owner-with-powershell-%E2%80%9Cthe-security-identifier-is-not-allowed-to-be-the-owner-of-this-object%E2%80%9D/

Here’s the full command that works for me:

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.