Office 365 – Exporting Site Collection Search Configuration using CSOM with PowerShell

Chris O'Brien has a fantastic Blog post – Using CSOM in PowerShell Scripts with Office 365: http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-PowerShell-scripts-with-Office365.html. One of the examples that he provides is how to import search configuration from an XML file, this is a new feature in SharePoint 2013 that is documented here – http://technet.microsoft.com/en-us/library/jj871675(v=office.15).aspx. I've put together a PowerShell script that can be…


Office 365 – Automating the Creation of a Design Manager Package using CSOM with PowerShell

One of the really cool features in SharePoint 2013 is the Design Manager, further information on this feature can be found here: Overview of Design Manager in SharePoint 2013 – http://msdn.microsoft.com/en-us/library/jj822363.aspx. Design Manager provides the ability to export a Design Manager Package so that customizations can be easily copied to another Site Collection and re-used -…

7

Office 365 – Automating the Creation of Managed Metadata Groups, Term Sets and Terms using CSOM with PowerShell

I've previously written a Blog post on how to output MMS Term Sets and Terms using CSOM – http://blogs.technet.com/b/fromthefield/archive/2014/03/03/office-365-output-managed-metadata-term-sets-and-terms-using-csom.aspx. This next script example can be used to automate the creation of MMS Groups, Term Sets and Terms. The only reason that I wrote this script was for an excuse to improve my understanding of the…

5

Office 365 – Create Managed Metadata Terms using CSOM with PowerShell

In a follow up to my previous post – "Office 365 – Output Managed Metadata Term Sets and Terms using CSOM with PowerShell" – http://blogs.technet.com/b/fromthefield/archive/2014/03/03/office-365-output-managed-metadata-term-sets-and-terms-using-csom.aspx, I've written a sample PowerShell script that can be used to add Terms to a specific Term Set. The script uses a simple text file as input with each Term…


Office 365 – Output Managed Metadata Term Sets and Terms using CSOM with PowerShell

This PowerShell script will connect to an O365 SharePoint tenant and output the following information to the console from the Managed Metadata Term Store: Groups Term Sets Terms As with my previous CSOM scripts, this is more a sample to get you started than something you would use in production. My term store has a relatively small…

9

Office 365 – Retrieve User Profile Properties using CSOM with PowerShell

Update 12/04/14 – I have added an example that demonstrates how to export User Profile Properties to a CSV file at the end of this post. The example PowerShell script below can be used to retrieve all user profile properties for all users within a Site Collection. It doesn't appear to be possible to connect to the…

31

Office 365 – PowerShell Script to Upload Files to a Document Library using CSOM

UPDATE: My colleague Roger Cormier has created a far superior version of this script that is able to handle sub-folders, please check it out – https://gallery.technet.microsoft.com/PowerShell-Bulk-Upload-b9e9d600 Another PowerShell sample script for you. This one uploads all files within a specified local directory to a Document Library within a Site in an O365 tenant. All you need to…

40

Office 365 – PowerShell Script to Create a List, Add Fields and Change the Default View all using CSOM

I'm my continued quest to get to grips with the Client Side Object Model (CSOM) in SharePoint 2013, I have put together a sample script below that connects to a Site Collection within an O365 tenant and does the following: Creates a list using the "Custom" list template Adds two Site Columns to the list (City and…

16