Browsing through some forum or newsgroup recently I noticed that the task of getting or setting file or folder ownership is not trivial from a script.
I put together a small COM component that does the trick and it is available for free from here:
The usage is pretty simple and self explanatory.
Only tested under XP so far, so please post in our free tools forum if you encounter any trouble.
Please note that you MUST be logged on as an admin to use this.