[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1438
  • Last Modified:

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?
0
Inbox360
Asked:
Inbox360
  • 6
  • 2
1 Solution
 
ajwukCommented:
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
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ajwukCommented:
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
 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now