• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 598
  • Last Modified:

removing file attributes for an entire directory and subdirectory

I am running 2 file servers and am transferring the files from the old server to the new server with robocopy, but I'm getting errors that say: "the system cannot find the path specified". Error: Retry Limit exceeded.

I checked the old server and I can see the files there, but they have an A in the attributes column, so I'm thinking I need to remove all A and H attributes and probably R since I'm at it, as that's why it can't copy the files over.  I have already given full access to my domain user that I'm using to copy and the system as well.

I've tried the following command, but it doesn't work:  attrib -A E:\userdocs\location\*
and attrib -A E:\userdocs\location\*.*
But both attemps give me the error message: "parameter format not correct".

Any idea's how I can remove these attributes either from the GUI or CLI without having to do it one by one, each file, as there's hundreds of files, if not thousands.

Thanks.
0
afacts
Asked:
afacts
  • 5
  • 2
1 Solution
 
Neil RussellTechnical Development LeadCommented:
Those attributes wont stop the correct robocopy command running.  Can you please post your EXACT robocopy command here please.
0
 
afactsAuthor Commented:
SUre:

robocopy  \\server\adp E:\adp /E /MIR /COPYALL /MT /V /LOG:E:\logs\adp.txt /R:0 /W:0 /TEE /ETA /DCOPY:T /FP /ZB
0
 
afactsAuthor Commented:
So if it's not the file attributes, here's a screenshot of the error:

errorerr
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
afactsAuthor Commented:
anytone else would like to take a stab as to why I'm getting these errors?
0
 
Neil RussellTechnical Development LeadCommented:
Do you have permissions to that folder? your copying user profiles and you wont necessarily have full access permisions to those directories? Have you checked that from the destination server that you are running from that you can browse to that remote path with the account you are copying from?
0
 
afactsAuthor Commented:
Which folder are you asking if I have permissions, on the source folder, or on the destination folder, under the username folder, or the my documents folder inside the username folder?

I did check and I was able to browse on the source server, that's why I know the files are there. I even gave full access on the destination folder as well, so both servers, have full accese on that one folder and all subfolders.
0
 
afactsAuthor Commented:
Thanks, you pointed me in the right direction, it was a permission issue.

I changed the permissions on both servers, both folders exactly the same, and it worked.
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

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