Forum Discussion

Steve Canvin's avatar
Steve Canvin
Copper Contributor
Sep 23, 2020
Solved

Copy from SP to Teams SP site using Powershell

Apologies if this needs to go in a Teams or Powershell forum, but i thought id try here first!   I have a powershell script using: Connect-AzAccount Connect-MicrosoftTeams, AzureADPreview\Connec...
  • Matti Paukkonen's avatar
    Sep 23, 2020

    Hi Steve Canvin ,

     

    You can use Copy-PnPFile to copy files and folders between sites collections.

    SharePoint site behind a team is a SharePoint team site, so you can use that as a target.

    Notice that currently there is a 200MB file size limit per operation.

    https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/copy-pnpfile?view=sharepoint-ps&WT.mc_id=M365-MVP-5003860