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!
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!
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.
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?
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.
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.
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.
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"
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
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
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 ?
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.
in testing for the PREMIUM, so far so good. Cows FTW
Insightful, thanks for taking the time and showing it
Glad it helped
Thanks for detailed video. Can we copy files directly from Azure BLOB to Sharepoint Online using PNP ?
Great work Shane !
Thanks for this
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!
I haven’t done that befor.le. Sorry
thanks Shane! this is awesome!
Hope it helps. :)
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!
I think it is possible but would be a lot of work. Sorry not something I can rattle off the top of my head.
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.
Not sure haven’t messed with them before. 😑
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?
Cool. Can you do the vice versa?
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.
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.
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.
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"
Sorry I don’t have the setup to test.
Thanks for the Video, Is there a way to move the version history with the files? including the revision.
This is awesome, thanks! Is there a limitation on how many files can be moved by the script?
I have had a client do over 100k so I don’t think so. Just slow
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
Hey Jeff - I am not sure. It has been a long time since I have used that code myself.
Nice 👍🏼, is there any way to increase upload file size beyond 250MB?
Not that I know of
What if I want to Copy File Share with Metadata to SharePoint 2019 premises?
PNP has cmdltes for on-premises also so should work fine.
Does anyone have a link to the script, the link posted on here doesn't work
The place I was hosting it raised their prices too much so I turned it off. 😑 Sorry.
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
No space connect-pnponline should work
Thanks this is awesome
can we migrate file using new-SpoMigrationPackage from local directory to SharePointOnline
Not sure. Haven’t tried. 😑
@@ShanesCows well i got it done, it wouldn't have been possible without your tutorials. thank you Shane:)
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 ?
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?
Do you have a video of moving files from different SharePoint subwebs?
How about this? ruclips.net/video/iQ8DpKiLcvg/видео.html Should get you close?
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.
Hi @@eduardoflores1603, could you please share the script for uploading documents with Metadata from .csv to SharePoint? It would be very helpfull :-)
Plaese share the script.
Thanks in advance.
You can download from here: sellfy.com/p/k5Ap/
@@ShanesCows doesn't exist anymore
@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.