how can i get xcopy to copy folders on a mapped drive on domain?

heres the problem i have new w2k3 domain and testing out new file structure.  i have a folder that has a script in it that when ran by certain users it creates a whole bunch of folders(already setup somewhere else) with files in it and copies over permissions too. i am on a test user for one of my groups and the script  will not run. this is my script.
                                              xcopy Z:\protected Z:\Projects\ATT_BW /e /i /o /y /k /c
the drive that gets mapped to user is z: drive and the protected folder and projects are on the root.  in the att_bw folder is this line in a .cmd file.  heres the error i get.
File creation error - This security ID may not be assigned as the owner of this
object.

Unable to create directory - Z:\Projects\ATT_BW
0 File(s) copied

I cannot figure out why when i logon and get mapped drive. i go into z and try it. it runs but i am the domain admin.  when i try the test user, i get that error, any ideas? thanks.
After alot of testing i got it to work but my test user was an administrator i took him off and now it wont work. are users allowed to run bat files on a mapped drive?
Inbox360Asked:
Who is Participating?
 
ajwukTechnical Consultant / Project ManagerCommented:
Does it run under the user context okay when you don't use the /o switch?
I suspect it's to do with the owner object of the destination folder.
0
 
ajwukTechnical Consultant / Project ManagerCommented:
Hi,
Have you checked the domain users have relevant share and NTFS permissions to the Z:\ mapping?
What permissions does the domain admin group have over a standard user?
0
 
Inbox360Author Commented:
the z: mapping goes to my d:\intenna folder on the server.  the intenna folder has share permissions likeveryone has FC and i just added Users to have FC.  ON ntfs, admin have FC, domain admin has FC, engineering has modify, managers have FC, users have modify. no matter what i change i cant get a user of engineering or manager to run this script?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
Inbox360Author Commented:
i just got it to work anytime a user is added to administrators group under AD. i add them to admin and they can run script, if i take them out they cant??
0
 
Inbox360Author Commented:
yes when i dont use /o it works but the problem is that i have to because i need the ACL info to copy because folders below the set of folders it creates have permissions set to it. so what can i do?
0
 
Inbox360Author Commented:
yes when i dont use /o it works but the problem is that i have to because i need the ACL info to copy because folders below the set of folders it creates have permissions set to it. so what can i do?
0
 
Inbox360Author Commented:
yes when i dont use /o it works but the problem is that i have to because i need the ACL info to copy because folders below the set of folders it creates have permissions set to it. so what can i do?
0
 
Inbox360Author Commented:
sorry i kept reloading page to look for updates to page and it kept posting my own one, dont know why
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.