In this super short post I’ll show how to use Powershell and CSOM (Client-side Object Model) to set the value of a multi-value Lookup field column in a list or library. To set the value for a single-value column you just need to set the column value to a FieldLookupValue instance, note that only the LookupId … Continue reading Setting a SharePoint Multi-value Lookup Field value using PowerShell and CSOM
Create Folder Hierarchies for SharePoint Lists and Libraries using Powershell
A small Powershell snippet which will create folder hierarchies within SharePoint lists and libraries Usage
SharePoint: This is Why I Loved Powershell Today
So just at the moment I’m developing some custom policy resources for an Information Management retention/expiration solution for a client, and in the midst of testing I discover that some content items aren’t expiring as they should. Why I Loved Powershell Today #1 I needed to check the values of some columns on content items … Continue reading SharePoint: This is Why I Loved Powershell Today
SharePoint 2013: Error Creating Publishing Sites with Powershell
Creating a Publishing site collection in SharePoint 2013 Preview using the Central Administration UI, results in a nice shiny publishing site, as you’d expect; Creating the same site using Powershell, at least for me, resulted in something not quite the same. The powershell I used was this, simple stuff; Checking the SPWeb properties of the … Continue reading SharePoint 2013: Error Creating Publishing Sites with Powershell
Restore SharePoint Site Collection using Restore-SPSite Fails with No Content Databases are Available
Attempting to restore a site collection using the powershell Restore-SPSite cmdlet failed with the following error I had previously deleted the site collection using Central Administration, and in this case I was trying to copy the site collection between virtual machines. Deleting the site collection in Central Administration used the gradual delete method which left the … Continue reading Restore SharePoint Site Collection using Restore-SPSite Fails with No Content Databases are Available