Category Archives: Files

Upload local folder structure with files on Sharepoint Online

…this post was published on 2017 February 12. IF you would like to upload a complete structure of folders and subfolders on Sharepoint Online you can do it using Powershell and CSOM, using the following script. You need to know the – … Continue reading

Posted in Files, Powershell, Sharepoint Online, upload | Comments Off on Upload local folder structure with files on Sharepoint Online

Calculate the number of working days between two values

…this post was published on 2015 October 18. Bollow is the script to calculate working days between to date values, removing Sundays and Saturdays and the holidays from the .csv file ( an example of that .csv file attached in this post … Continue reading

Posted in csv, Powershell | Comments Off on Calculate the number of working days between two values

Managing Content Types for a list with Powershell

…this post was published on 2015 September 24. First i created a new content type – this time using GUI. The name for this new content type ( Type Item ) it is: Custom_Content1 It is a minimal item ( with default … Continue reading

Posted in csv, Powershell, Sharepoint 2013 | Comments Off on Managing Content Types for a list with Powershell

Getting files from a specific folder in a doc lib powershell

…this post was published on 2015 August 2. $yourweb=”http://shp2013″ $yourlist=”Documents” $yourfolder=”folder1″ $results = @() $web = Get-SPWeb $yourweb $my_list = $web.Lists | Where-Object { $_.Title -eq $yourlist} foreach ( $item in $my_list.Items){ if ($item.File.ParentFolder.name -eq $yourfolder){ $results = $results+$item.Name } } … Continue reading

Posted in Files, Powershell, Sharepoint | Comments Off on Getting files from a specific folder in a doc lib powershell

Robocopy, first steps on using it

…this post was published on 2012 April 7. 1. A first solution to copy from source to destination, but not the best one, is to use for example Windows Explorer. The solution is for beginner, very easy, but also without many options. … Continue reading

Posted in Files | Comments Off on Robocopy, first steps on using it