copy .pst in one site collection to new library in another site collection

Welcome Forums General PowerShell Q&A copy .pst in one site collection to new library in another site collection

Viewing 6 reply threads
  • Author
    Posts
    • #252374
      Participant
      Topics: 1
      Replies: 4
      Points: 20
      Rank: Member

      We are dealing with SharePoint OnPrem / 2016 in this scenario.

      I have a library template located in Site Collection 1, and need to create a library in site collection 2 using this centrally located .pst file in Site Collection 1.

      Every example I’ve seen so far has the .pst in the same site collection, but our scenario the .pst will stay in site collection 1 so there’s one source of truth.

      Is this an option? Does the .pst have to be in the same site collection where the new library is created if using PnP?

      Please advise of any example where I could accomplish this.

    • #252377
      Senior Moderator
      Topics: 9
      Replies: 1408
      Points: 5,227
      Helping Hand
      Rank: Community MVP

      This is a pure Sharepoint related question and cannot guarantee an answer from PowerShell forum. O suggest you to post this in Sharepoint forums…

      Or are you using PowerShell anywhere in this ?

    • #252380
      Participant
      Topics: 1
      Replies: 4
      Points: 20
      Rank: Member

      Looking at this example currently, but it’s only dealing with a single site:

      • This reply was modified 3 months ago by kvprasoon. Reason: code formatting
    • #252389
      Participant
      Topics: 1
      Replies: 4
      Points: 20
      Rank: Member

      Trying the following, but running into template errors:

      Please advise of any example where I could accomplish this, as I’m getting the following error:

      New-PnPList : Cannot bind parameter ‘Template’. Cannot convert value “TempLibrary_100Rows” to type “Microsoft.SharePoint.Client.ListTemplateType”. Error: “Unable to
      match the identifier name TempLibrary_100Rows to a valid enumerator name. Specify one of the following enumerator names and try again:

      • This reply was modified 3 months ago by kvprasoon. Reason: code formatting
      • This reply was modified 3 months ago by kvprasoon. Reason: code formatting
    • #252401
      Participant
      Topics: 1
      Replies: 85
      Points: 387
      Helping Hand
      Rank: Contributor

      Check out ListTemplateType for acceptable values for -Template.

    • #252407
      Participant
      Topics: 1
      Replies: 4
      Points: 20
      Rank: Member

      So, sounds like we can’t do it…correct?

      If I have an existing SharePoint library, I can make a template out of it, and create a new library based off this template all via the browser.

      Not understanding why we can’t do same via PnP

    • #252641
      Participant
      Topics: 1
      Replies: 4
      Points: 20
      Rank: Member

      Okay, sounds like this may not be an option.

      What about a simple copy library from one site collection to another…that’ll work for the moment?

      I’ve been searching for scripts, and nothing working so far.

      PnP seems like would be super concise option for this.

Viewing 6 reply threads
  • The topic ‘copy .pst in one site collection to new library in another site collection’ is closed to new replies.