I have a folder of read only files. When I copy one of these files to a test location, I want to be able to copy them and not retain their original attributes.
I can do this, but this is lengthy.
copy-item srcfilefullname destfilefullname
set-itemproperty destfilefullname -isreadonly $false
I did not find anything in the documentation for copy-item. I am hoping there is a shorter way.
Thanks
Steeluser