title: VSTS CopyFiles task produces error 'Could not write to dest file (code=EPERM)'
body: <p>I have VSTS Agent running as a service under the 'Network Service' account. </p>
  
  <p>When I attempt to use "Copy Files Task" the task sometimes generates an error 
  "Failed cp: cp: copyFileSync: could not write to dest file (code=EPERM)..."</p>
  
  <p>Example Error: 
  2018-09-25T15:26:00.2055152Z ##[error]Error: Failed cp: cp: copyFileSync: could not write to dest file (code=EPERM):F:\Legacy\WinTools.Web\Web.config</p>
  
  <p>Other posts on StackOverflow mentioned an open file or insufficient rights to perform action. </p>
  
  <p>The issue turned out to be the account 'NETWORK SERVICE' did not have the appropriate modify rights to the target folder. By adding modify rights for the mentioned account the release pipeline was able to successfully copy over the desired files. </p>
  
  <p>I am adding this for posterity in the hopes that someone else out there avoids the same issue I encountered. </p>