# Copy entire directory from windows share

**URL:** <https://discourse.chef.io/t/copy-entire-directory-from-windows-share/13896>\
**Category:** Chef Automate\
**Created:** [October 26, 2018, 2:22pm UTC](https://discourse.chef.io/t/copy-entire-directory-from-windows-share/13896 "2018-10-26T14:22:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shirisha](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@shirisha](https://discourse.chef.io/u/shirisha)\
**Post date:** [October 26, 2018, 2:22pm UTC](https://discourse.chef.io/t/copy-entire-directory-from-windows-share/13896/1 "2018-10-26T14:22:38Z")

</div>

remote\_file 'copyfile2' do  
source 'file:////myshare/chef\_file\_create.ps1'  
path 'c:/temp/chef\_file\_create.ps1'  
end

This worked fine once after that it errors out with permissions denied. i even tried adding atomic\_update false like one post suggested.  
tried file:/// instead of file://// but still no luck  
Any ideas?
