title: How do I download file metadata from a SharePoint site?
body: <p>I have a SharePoint site and I would like to download all files and their metadata (specifically, the name of the creator and the name of the modifier for each time the file was modified, as well as the date of modification).  I can see this metadata in the user interface, so I know it is available. </p>
  
  <p>I have set up access to the SharePoint site via SharePoint Online Management Shell, and I am running it as an admin.  I've followed all the <a href="https://technet.microsoft.com/en-us/library/dn568015.aspx" rel="nofollow">steps</a> for connecting to SharePoint, and I've confirmed that these steps have executed correctly. </p>
  
  <p>However, when I try to deploy <a href="http://www.nikcraik.ca/sharepoint-powershell-script-to-extract-all-documents-and-their-versions/" rel="nofollow">this</a> script (substituting the 13th line with the name of my site), it errors out on the 'Get-SPWeb' cmdlet.  Do I need to make other modifications to this script?</p>
  
  <p>I am aware that there are other scripts for downloading SharePoint files, but I need to use this one because a SharePoint admininstrator told me that it would work in conjunction with a second script which extracts the metadata, found here: <a href="https://gallery.technet.microsoft.com/scriptcenter/get-file-meta-data-function-f9e8d804" rel="nofollow">https://gallery.technet.microsoft.com/scriptcenter/get-file-meta-data-function-f9e8d804</a></p>