Copy File Share with Metadata to SharePoint Online using PowerShell

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

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

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

    in testing for the PREMIUM, so far so good. Cows FTW

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

    Insightful, thanks for taking the time and showing it

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

    Thanks for detailed video. Can we copy files directly from Azure BLOB to Sharepoint Online using PNP ?

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

    Great work Shane !
    Thanks for this

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

    Nice video to help understand how to upload the files.
    I am having a document with custom metadata for e.g. Country, Emp ID etc. How can i pull the such metadata from the document/ file and map in PowerShell Code to set the values.
    Documents/ Files can be of any type MS-office or PDF or Email etc
    Looking out for your response.
    Thanks!

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

      I haven’t done that befor.le. Sorry

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

    thanks Shane! this is awesome!

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

    Hi Shane
    Would it be possible to post a video of how to move a complex file share folder structure into SharePoint Online but convert the folder structure into Metadata columns? I know 3rd party tools are available but was hoping it would be possible with PowerShell - thanks!

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

      I think it is possible but would be a lot of work. Sorry not something I can rattle off the top of my head.

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

    How do you handle multiple versions of the same file for libraries with version control enabled? I gather that the --checkout switch switch on Add-PnPFile will do something along these lines. However I need to specify the version number on each file. Any advice would be much appreciated. Thanks.

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

      Not sure haven’t messed with them before. 😑

  • @IkMag
    @IkMag 2 года назад

    In this video it looks like you are using a local machine to copy from.
    In my situation I am trying to copy from a network drive and I need the name of modified by from the document properties. Which I can see in the explorer, after a right click on a document. In my PowerShell script I use Get-Acl() to get this information. What I get as result is the an SID. Is there a way to get the username so I can fill both the creator and editor on SharePoint?

  • @dandruff3414
    @dandruff3414 2 года назад +1

    Cool. Can you do the vice versa?

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

      Yes, you have all of the pieces I think. To be fair I have never done it. What I would try: Get the properties from SharePoint and set the properties on the file system.

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

    Hi Shane,
    Great video! I was wondering if I could get the script, I tried the link that you put up there for the download but it seems to have expired.

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

      Go to PowerApps911.com and request it via the Contact. I think we have it archived but not positive. Sorry, the old service we used to distribute it went away.

  • @clvc699
    @clvc699 4 года назад +2

    Hi, thanks for all.
    How can I send a file in a site for example , my folders is in this path
    "sites/gespro/Documentos de Apoyo/Prueba Migracion Destino"
    Add-PnPFilePath$cow-Folde "PATH HERE"

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

      Sorry I don’t have the setup to test.

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

    Thanks for the Video, Is there a way to move the version history with the files? including the revision.

  • @haydenr4229
    @haydenr4229 5 лет назад +2

    This is awesome, thanks! Is there a limitation on how many files can be moved by the script?

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

      I have had a client do over 100k so I don’t think so. Just slow

  • @mrweeble63
    @mrweeble63 3 года назад +1

    Hi Shane
    I have followed this tutorial to the letter.
    However, i am constantly getting a "File Not Found" error.
    My account is a Domain Admin, a 365 Global admin and a Site owner.
    I have confirmed the files are in an accessible location and are populating the variable.
    My only difference is that I am trying to copy files from a network share to a subfolder of a site. ("/supportareas/funddevelopment/Fund Development Main Library")
    Any suggestions as to why it might not be working for me?
    Cheers mate
    Jeff

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

      Hey Jeff - I am not sure. It has been a long time since I have used that code myself.

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

    Nice 👍🏼, is there any way to increase upload file size beyond 250MB?

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

    What if I want to Copy File Share with Metadata to SharePoint 2019 premises?

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

      PNP has cmdltes for on-premises also so should work fine.

  • @richardpepple6039
    @richardpepple6039 3 года назад +1

    Does anyone have a link to the script, the link posted on here doesn't work

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

      The place I was hosting it raised their prices too much so I turned it off. 😑 Sorry.

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

    When trying to add script (Connect -PNPOnline -url xxxxxx),
    I am facing the following error, "The term 'connect' is not recognised as the name of a cmdlet, function, script file, or operable program."
    Could you please help me on this. Thanks

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

      No space connect-pnponline should work

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

    Thanks this is awesome

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

    can we migrate file using new-SpoMigrationPackage from local directory to SharePointOnline

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

      Not sure. Haven’t tried. 😑

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

      @@ShanesCows well i got it done, it wouldn't have been possible without your tutorials. thank you Shane:)

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

    Hi Shane,
    I was trying to set "Created By/Modified By" fields by setting Author and Editor values. But I receive an error which says - "Add-PnPFile : The specified user could not be found."
    But when I tried to run "Get-PnPuser Id", it returns the username.
    Please let me know if I am missing something here ?

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

      I got the same thing - so converted to a string. This works with the Editor but Not the Author. Why does it work for Shane?

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

    Do you have a video of moving files from different SharePoint subwebs?

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

      How about this? ruclips.net/video/iQ8DpKiLcvg/видео.html Should get you close?

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

      Yeah I found it too haha, Thanks! Worked although not seemless like I would have wanted.. I actually used Get-PnPFile to extact the files. I put the metadata into a csv and placed the files in the target site & Lib from the files folder but using the metdata in the csv. Pretty cool stuff.

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

      Hi @@eduardoflores1603, could you please share the script for uploading documents with Metadata from .csv to SharePoint? It would be very helpfull :-)

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

    Plaese share the script.
    Thanks in advance.

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

      You can download from here: sellfy.com/p/k5Ap/

    • @ABCD-ABCDEFGH
      @ABCD-ABCDEFGH Год назад +1

      @@ShanesCows doesn't exist anymore

    • @ABCD-ABCDEFGH
      @ABCD-ABCDEFGH Год назад

      @Shane Young it will be good if you remove the link looks like it is no longer available. it is available with a price only.