xcopy- unable to create directory

Z:\Projects\ATT_BW xcopy Z:\protected\new Z:\Projects\ATT_BW /e /i /y /r /o
File creation error - This security ID may not be assigned as the owner of this
object.

Unable to create directory - Z:\Projects\ATT_BW

this is the error i get when im trying to allow another OU run this script.  In NTFS permissions through the path of folders a certain OU is allowed to run this script but when i have been adding this 2nd OU permissions, i gave the 2nd OU the same permissions as the first but keep getting this error? i have to do /o to copy the acl info with xcopy but i think something is wrong with the ownership? the owner says is intenna\administrators? any help would be great
Inbox360Asked:
Who is Participating?
 
knightEknightConnect With a Mentor Commented:
First try using  xcopy /t /e
This will tell you whether the problem is with creating the folders or if it is with a specific file.
0
 
knightEknightCommented:
oops, leave off the /e  (typo)
0
 
Inbox360Author Commented:
it has to do with the /o when copying the folder.  when i have /t instead of /e still doesn't work. but if i take out /o it works.  but i need /o because the folders inside hav acl info that has to transfer?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Inbox360Author Commented:
any ideas?
0
 
Inbox360Author Commented:
i just used robocopy thanks
0
 
knightEknightCommented:
Sorry I couldn't help more.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.