Sunday, April 19, 2015

#54 : How to upload file to SharePoint with Powershell?

Uploading to SharePoint is fairly simple with the below snippet. I am sharing the Gist script which might be useful for you. The only carefulness required here is to make sure that credentials are properly granted to the executing account.



Try above and let me know how it goes. Please update me in case of any issues.

Thanks for reading this article!

2 comments:

  1. Good day Som, I'm trying to upload some excel files to sharepoint site, but it's failed, because all of them about 30MB, so it's big size to upload, and I don't know how to implement this issue, probably I should zip it automatically by powershell and upload it again? how do you think? could you please help me, my email is esengalievb@gmail.com. Thank you. Bauyrzhan.

    ReplyDelete
  2. Hi all,

    i have over 20 of files, which i would like to upload to SharePoint document library. As you know SP doesn't support big size of documents. so what will be the best way to upload all of files automatically.

    Thanks in advanced!

    ReplyDelete

#112: How to handle xml document in Powershell?

 In PowerShell, you can handle XML data using various cmdlets and methods provided by the .NET Framework. Here's a basic guide on how to...