I moved user home directories from one drive to another on a Windows 2000 file server. Administrator is now the owner.

I'd like to set the Ownership of each directory to its respective user.

Need to do:

1. Extract the subdirectory listing from F:\Home.
2. Match a username to each subdirectory (if exist).
3. Change the ownership.

Shell 'cmd.exe /c @scriptdir\xcacls $BaseHomeDir\$username /g $domain\$username $username:o'

Does anyone have a script that they are already using (and willing to share)? This seems to be a common problem when moving home directories with Microsoft Windows.

tjcarst