Category Archives: Powershell

Search for user or group in Sharepoint groups with Powershell

If you would like to search for a user o domain group in your SharePoint on-premises groups, the following script will help you The needed mandatory paramaters are: $searchelement , which is the name or a port of the name … Continue reading

Posted in Powershell, Sharepoint | Comments Off on Search for user or group in Sharepoint groups with Powershell

Deleting specific files from Sharepoint on-premises library

Starting from this request, bellow you will find the script needed to try 2 option The first one , the Powershell script will read the csv file and for each entry, fill parse the SharePoint library for the file The … Continue reading

Posted in Powershell, Query, Sharepoint | Comments Off on Deleting specific files from Sharepoint on-premises library

Backup site collections from a .csv file using Powershell

Assuming that you have a .csv file which contains a list of site collections in this format URL,path http://site1,path1 http://urlpath/site2,path2 the line you need to backup them is this one: Import–Csv yourfile.csv | ForEach-Object { Backup-SPSite $_.URL -Path $_.path -force} … Continue reading

Posted in backup, Powershell, Sharepoint | Comments Off on Backup site collections from a .csv file using Powershell

Deleting empy folders in Sharepoint Online using Powershell CSOM

starting from this post I propose you following script It will search all folders and subfolders  and if some of folders doesn’t contains files it will shows you these folderfs and it will ask you if you would like to delete … Continue reading

Posted in Powershell, Sharepoint Online | Comments Off on Deleting empy folders in Sharepoint Online using Powershell CSOM

Add domains in Office 365 with Powershell

If you would try to add a new domain to your Office 365 tenant , using Powershell, the steps are ( of course after you install Windows Azure Active Directory Module for Powershell ) Step 1. Connect to your tenant … Continue reading

Posted in Office 365, Powershell | Comments Off on Add domains in Office 365 with Powershell

Create a library in each subsite in SharePoint Online

Starting from this post, bellow is the script which will create a library in each site for a specific site collection. $url = “your site collection URL” $description = ” This is my library” $Title = “00My List Title in … Continue reading

Posted in CSOM, Office 365, Powershell, Sharepoint Online | Comments Off on Create a library in each subsite in SharePoint Online

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

Restoring multiple files versions in Sharepoint Online using Powershell

…this post was published on 2017 January 28. Starting from this post, I attached a zipped document with the scripts needed to do the request. The .zip file contains the files: Online_RestoringFiles.ps1   – this is the main file which will use the second … Continue reading

Posted in Powershell, Sharepoint Online | Comments Off on Restoring multiple files versions in Sharepoint Online using Powershell

Download all images from all picture libraries on Sharepoint Online

…this post was published on 2017 January 19. You can use following script. Save it  on your PC or run it directly using .ISE. All Images will be saved in specific picture library​. You need to download locally 2 libraries , if … Continue reading

Posted in Powershell, Sharepoint Online | Comments Off on Download all images from all picture libraries on Sharepoint Online

Download specified doc version from Sharepoint 2010 library

…this post was published on 2017 January 17. using Powershell, could be a challenge. Why? First you need to use version 2 , and if you already have other greater version installed on the machine you are forced to use only the … Continue reading

Posted in Powershell, Sharepoint 2010 | Comments Off on Download specified doc version from Sharepoint 2010 library