Give Ownership to Users Home Directory

I have a simular problem that is shown in the following question:

I downloaded and installed the SUBINACL , I then copied and modified Shift-3's script and named it ownership.bat. Below is that script...

@echo off

REM The directory containing the home folders.
set homeroot=S:\dfsshared\home\hoffman\

REM Your domain name
set dom=idn.local

for /F "usebackq tokens=*" %%G in (`dir "%homeroot%" /A:D /B`) do (
   subinacl /file "%homeroot%\%%G" /setowner="%dom%\%%G"

 I then went to the Start>Program files>Windows Resource Kits tols>Command Shell and ran ownership.bat and got the results below.
I had orginally run Shift-3's 1st script in that answer, but got the same results as indicated below....
Elapsed Time: 00 00:00:00
Done:        0, Modified        0, Failed        0, Syntax errors        0
+file S:\dfsshared\home\hoffman\\testuser

The Home folders for the users is located on a SAN so not sure if NTFS Permissions need to be set and not sure how to do this sort of thing either.
Any help on this would be apperciated.

edit One more thinkg worth adding, I was using xcacls to give users permissions to their home and profile directories. I also had a version of this that set up ownership but it seems to not work so was looking for alternate solutions.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Change  S:\dfsshared\home\hoffman\ to

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OSXFreakAuthor Commented:
Tried that, no such luck. :(
Elapsed Time: 00 00:00:00
Done:        0, Modified        0, Failed        0, Syntax errors        0
+file S:\dfsshared\home\hoffman\testuser
This is the results I get now, I do see the difference in that the +file line now has \testuser instead of \\testuser, but still not getting the results of changing the directory's ownership.

OSXFreakAuthor Commented:
Any help on this one. Shift-3 if yor out there, have a look as you might be able to solve my issue.


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.