I just replaced my old (Windows XP) computer by a new one (Windows 7). Thus, I am working with a new user. How can I change the file ownership of my files on my various external HDDs to the new user? I'd like to change only the files that belonged to a certain old user.

link|improve this question

60% accept rate
feedback

3 Answers

Check out CACLS - it's built into Windows 7.

"CACLS is a Windows NT command-line utility that is used to display or modify file or directory access control lists (ACLs)."

  1. http://technet.microsoft.com/en-us/library/bb490872.aspx
  2. http://www.techrepublic.com/article/use-caclsexe-to-view-and-manage-windows-acls/1050976
  3. http://support.microsoft.com/kb/162786
link|improve this answer
feedback

A quick but inelegant way to find who owns files is to enter the following at a command prompt: dir c: /q /s > FilesOwner.txt Assuming c: is the drive you are working on.

The /q will add the owner to the directory listing

Most files will get updated after you change the containing folder, but you can find any odd files by piping the results to the find command: dir c: /q /s|find "myusername"

link|improve this answer
+1: Excellent way to find his files for sure. I forgot about dir /q. Too long in GUI. ;) – techie007 Mar 4 '11 at 1:56
feedback

In Windows 7 there is also the program takeown for this purpose. For example:

takeown /F . /R

changes the ownership of the current directory and its subdirs to the current user.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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