{"id":5508,"date":"2022-01-27T00:02:34","date_gmt":"2022-01-27T00:02:34","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5508"},"modified":"2022-01-27T00:02:34","modified_gmt":"2022-01-27T00:02:34","slug":"azure-files-robocopy-error-access-denied-when-copying-ntfs-permissions","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/azure\/azure-files-robocopy-error-access-denied-when-copying-ntfs-permissions","title":{"rendered":"Azure Files Robocopy Error Access Denied when copying NTFS Permissions"},"content":{"rendered":"<p>Azure Files Currently does not have \u201cTake Ownership\u201d permission on the file share using Domain Auth\u00a0So if robocopy requires setting the owner, it will fail with access denied.<\/p><p>&#8220;ERROR 5 (0x00000005) Copying NTFS to Destination Directory Access is Denied&#8221;.<\/p><p>Way around this is to mount the file share to a drive letter using storage account and key which uses a localuser which can be found per below<\/p><p>Make sure you run powershell as Admin , you will then also need to run cmd as Admin to be able to see the new drive share\u00a0<\/p><p>&nbsp;<\/p><p id=\"VBfgDds\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"687\" class=\"alignnone size-full wp-image-5509  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/01\/img_61f1df496cd52.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/01\/img_61f1df496cd52.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/01\/img_61f1df496cd52-300x201.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/01\/img_61f1df496cd52-768x515.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Azure Files Currently does not have \u201cTake Ownership\u201d permission on the file share using Domain Auth\u00a0So if robocopy requires setting the owner, it will fail with access [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2092],"tags":[3704,817,3703,736,3642,3705],"class_list":["post-5508","post","type-post","status-publish","format-standard","hentry","category-azure","tag-error-5-0x00000005-copying-ntfs-to-destination-directory-access-is-denied","tag-access-denied","tag-azure-files","tag-backup","tag-ntfs","tag-nts"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5508"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5508\/revisions"}],"predecessor-version":[{"id":5510,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5508\/revisions\/5510"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}