title: Is there a way to update the "Created By" and "Created" fields on a SharePoint Folder using PNP
body: <p>I'm migrating a folder from my local drive to SharePoint Library, and i want to be able to modify the created by fields using powershell. is this possible?</p>
  
  <p>if not is there another alternative in which this can be done?</p>
  
  <p>I am able to do this with add-pnpfile for files but not for folders. something in the nature of </p>
  
  <pre class="lang-bsh prettyprint-override"><code>$object = @{}
  $object.Add("Modified",'1/1/2019')
  $object.Add("Editor" ,"jennie.Doe@email.com")
  $object.Add("Author" ,"Mac.walkers@email.com")
  
  Add-PnPFile -Path 'C:/users/Newfolder/test.docx' -Folder 'Test/NewFolder' -Values $object
  </code></pre>
  
  <p>where $object is the object holding the properties and values i need to update</p>