Move SharePoint Online files with Metadata

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • In this video, we talk about how to move SharePoint Online files with their metadata. We use the Patterns and Practices PowerShell cmdlets, do a quick rehash of a previous video, and then show you the magic and how you can easily apply it to other types of moves.
    Cmdlets we use:
    copy-pnpfile
    remove-pnpfile
    Get-PNPListItem
    Set-PNPListItem
    Original video on just moving SharePoint Online Files
    • Move SharePoint Online...
    Using Passwords with PowerShell
    • Learn to securely use ...
    Install Patterns and Practices PowerShell cmdlets
    • Install SharePoint Pat...
    For support, training, or more information about PowerShell check out www.boldzebras.com

Комментарии • 38

  • @shym_kokpar
    @shym_kokpar Год назад +1

    Man, you did a really cool review! It was incredibly helpful to me! now I'm your regular subscriber)))
    By the same principle, is it possible to save file access levels?
    I have a question, how to change the metadata of a large number of files when migrating from one tenant to another? do you have a video on this topic? I searched but didn't find
    I hope you answer)

    • @ShanesCows
      @ShanesCows  Год назад

      Sorry, I don't have a video on that :( Hopefully you can take the logic from this video and adapt it to what you need. Thanks for the sub. 😎

  • @lkuhn65
    @lkuhn65 7 лет назад +2

    I think there are some nasty gotchas to when trying to preserve the authors (Modified by and Created by) - especially when moving across site collections - would be cool to see that covered. Also, when moving files from a file share up into SharePoint - would be interested if there's a PowerShell-only way to extract author property off of Office docs and get that set into the SharePoint author fields.

    • @ShanesCows
      @ShanesCows  7 лет назад +1

      Thanks Larry. For sure there is going to be a video on moving files from a file share to SPO. Several requests there. I will see about the author stuff in the process but no promises.

  • @lahernandezs
    @lahernandezs 7 лет назад +2

    Shane, you´re awesome! thanks a lot for this video!

  • @DannyRobert
    @DannyRobert 4 года назад +1

    Do you think it is possible to adapt this script to copy a document library with its metadata to another site collection?

    • @ShanesCows
      @ShanesCows  4 года назад

      I think I covered exactly that in this video. ruclips.net/video/xwKTFfhQWLY/видео.html

    • @matthewaustin5551
      @matthewaustin5551 4 года назад

      @@ShanesCows You don't cover it the video mentioned above, how to move documen library from one site to another. i.e $targetLib="/site/thesite/docs/" . It doesn't work

  • @lahernandezs
    @lahernandezs 7 лет назад

    Hi Shane! are you aware if Drag&drop feature can be disabled using PowerShell and if this can be limited to folders only?

  • @sreeniv09
    @sreeniv09 4 года назад +1

    if the files and folder arrangement in source creates a deep link while uploading it will failt to create a sharepoint url because it will exceed the url character length more than the standard defined.. is there a work around.. is there a way i can verify the integrity of uploaded files?

  • @mouhidin
    @mouhidin 4 года назад +1

    Hello Shane and everybody,
    Thanks for the video, I watched the one for moving files in SharePoint online with their metadata, but I am unable to perform the same in my environment, even though I followed all steps exactly, please if you have a ready script, kindly share it with us.
    Regards.

    • @ShanesCows
      @ShanesCows  4 года назад

      Sorry the video is all that I have.

  • @haxguy0
    @haxguy0 7 лет назад +1

    Shane, I'm trying to copy files from Sharepoint Online to my local machine or network share. Copy-PnPFile seems to only copy from sharepoint library to another library. Do you have any advice? Thank you for the videos!

    • @ShanesCows
      @ShanesCows  7 лет назад

      Interesting. I have never thought about it in that direction. Let me go look.

    • @ShanesCows
      @ShanesCows  7 лет назад +2

      Get-PNPFile will do it.
      get-pnpfile -Url /docs/expenses.pdf -AsFile

    • @haxguy0
      @haxguy0 7 лет назад

      Thanks so much! I was racking my brain for days. You've saved me a lot of time and headache. These videos are so beneficial. I'm signing up for your emails and possibly courses if you offer them. Thanks again

    • @dwit82
      @dwit82 5 лет назад

      @@ShanesCows I'm trying to use Get-pnpfile to get pdfs from a sharepoint library, file name has spaces in it.
      get-pnpFile -url "/test/1234 5678.pdf"
      But I get this error: "Get-PnPFile : Field or property "Length" does not exist."
      Also trying to get the metadata into a text or CSV file too.
      Any quick suggestions to accomplish this?

  • @funhurtsmylungs1056
    @funhurtsmylungs1056 7 лет назад +1

    Hi Shane great video. Don't use SharePoint online but its always great to learn it. Just a question have you tried putting your "Copy-PnPFile" as a variable and then seeing if it returns an object?
    Much like:
    $db = New-SPContentDatabase
    $db.id

    • @ShanesCows
      @ShanesCows  7 лет назад

      Interesting. I see what you are doing there and will have to give it a try. Much better than CAML. :) Thanks

  • @miminsalele5091
    @miminsalele5091 5 лет назад +1

    hi, good day. may i ask something?how to retrieve a files in powershell?

    • @ShanesCows
      @ShanesCows  5 лет назад

      Retrieve how? The cmdlets in this video show you how to get a file. What are you trying to accomplish that is not working?

  • @GaryMinnock
    @GaryMinnock 6 лет назад +1

    Hi Shane, great video. Is there any means to copy version history also?

    • @ShanesCows
      @ShanesCows  6 лет назад

      Hi Gary. Great question I haven’t tried. What have you tried anything?

    • @GaryMinnock
      @GaryMinnock 6 лет назад

      Shane Young The PnP suite didn't seem to offer it at least. I did try use the new csom SharePoint dlls and was able to get the history out (to local disk) but haven't gotten as far as pushing to destination and I'm not sure it will work.

  • @tmvtech6152
    @tmvtech6152 6 лет назад +1

    Hi Shane, Great videos are there any updates to this Move SharePoint Online files with Metadata I am working on a migration issue moving folders from a domain share to to One Drive to SharePoint online. Without losing current metadata. I need to get the folders and files moved with their current create dates in tact. Does this Powershell script function like that?

    • @ShanesCows
      @ShanesCows  6 лет назад

      Yes. This script absolutely moves the files and keeps the following: create date, modified date, created by, and modified by. Is that what you need?

    • @tmvtech6152
      @tmvtech6152 6 лет назад +1

      Yes the create date most importantly transferring files from a domain share up to SharePoint Online. The upload function as well as straight out copy moves files but then the have just the modified date displayed. Thanks for the reply!

    • @ShanesCows
      @ShanesCows  6 лет назад

      Sorry. I was confused. I thought this was a comment on a different video. Good news! This video does exactly what you want. ruclips.net/video/PbusAK1tMjU/видео.html Sorry, I am slow.

  • @joges1000
    @joges1000 7 лет назад

    Hi I am trying to update the new page layouts within the existing Old page layouts inside the multiple pages in site collection. Is that Possible that I can do it with PowerShell. need some Guidance Thanks

  • @kmuralikrishna1582
    @kmuralikrishna1582 7 лет назад

    Shane, is there any vedios for copy from sharepoint onpremisses to SharePoint online

    • @ShanesCows
      @ShanesCows  7 лет назад

      There is now. ruclips.net/video/PbusAK1tMjU/видео.html

  • @sunilk4050
    @sunilk4050 4 года назад +1

    Hi Shane, May I have the code to restore the versions as well ?

    • @ShanesCows
      @ShanesCows  4 года назад

      Never done it. Sorry.

    • @simonabushevska1738
      @simonabushevska1738 3 года назад

      Any solution about this? It seems to be a huge problem with the version history

  • @Firebus1122
    @Firebus1122 5 лет назад

    Doesn't seem to work anymore :(

    • @hudsonquay
      @hudsonquay 5 лет назад

      Try updating your version of PowerShell