FromTheField

Real world experiences of SharePoint CSS engineers from Microsoft UK

Browse by Tags

Related Posts
  • Blog Post: Office 365 - Change the Locale of all OneDrive for Business Sites using PowerShell

    The SharePoint Online CSOM package has just been updated to include some additional functionality, which includes the ability to change the regional settings of a Site - further details on the updated release can be found here . One of my customers based in the UK wanted to change the Locale of all...
  • Blog Post: Office 365 - Create Permissions Level and Groups using CSOM

    I was recently helping a customer to deploy the OneNote Class Notebook App (which is really cool) to 200 of their SharePoint Online sites, the deployment part is super-easy however the assignment of permissions to users (teachers) to use the app isn't so straightforward when you have this number...
  • Blog Post: Office 365 - Identify External Users

    Here is a quick script that can be used to identify external users that have access to each Site Collection within an Office 365 tenant (excluding OneDrive for Business Sites). This script requires the SharePoint Online Management Shell which can be downloaded from - http://www.microsoft.com/en-us/download...
  • Blog Post: Office 365 - Create a List and Add Custom Fields using CSOM

    I previously Blogged about creating a List and adding Site Columns using CSOM and PowerShell - http://blogs.technet.com/b/fromthefield/archive/2014/02/18/office365-script-to-create-a-list-add-fields-and-change-the-default-view-using-csom.aspx I was recently asked to create a List and add some Custom...
  • Blog Post: Office 365 - Upload and Set a Master Page

    We all know that Custom Master Pages for SharePoint Online are not recommended, right? I had a customer that decided they needed to use a custom Master Page and asked for my assistance to automate the process of uploading and configuring their custom Master Page, never one to shy away from writing...
  • Blog Post: Office 365 - Deleting a Web Part using CSOM

    I was recently assisting a customer to automate the creation and customization of their SharePoint Online sites using PowerShell, one of their requirements was to remove the "Get started with your site " Web Part from the landing page of each newly created Team Site. The script below...
  • Blog Post: Office 365 - Identify how much storage a OneDrive site is consuming with PowerShell

    UPDATE: It now appears to be possible to use Get-SPOSite to bind to a OneDrive site (I'm sure that this didn't work before!). I recently helped a colleague to write a script that reports how much storage a OneDrive site is consuming, for standard SharePoint Online sites the Get-SPOSite PowerShell...
  • Blog Post: Office 365 - Creating a Subsite (Web) using CSOM in SharePoint Online

    SharePoint Online has a number of PowerShell Cmdlets - https://technet.microsoft.com/en-us/library/fp161374(v=office.15).aspx, these Cmdlets include New-SPOSite which provides the ability to create a Site Collection, unfortunately it's not possible to create a SubSite (web) using these Cmdlets -...
  • Blog Post: Flush the SharePoint Configuration Cache

    From time to time you may need to flush the SharePoint configuration cache on servers within your farm, my colleague Joe Rodgers blogged about this many moons ago - http://blogs.msdn.com/b/josrod/archive/2007/12/12/clear-the-sharepoint-configuration-cache-for-timer-job-and-psconfig-errors.aspx . If you...
  • Blog Post: Hybrid Search with SharePoint 2013 and Office 365

    I recently presented a session at the Yorkshire (UK) SharePoint User Group on Hybrid Search with SharePoint 2013 and Office 365 , as promised to the attendees attached is the presentation (including demo videos). Brendan Griffin - @brendankarl
  • Blog Post: SharePoint Maintenance

    From time to time you may need to temporarily make SharePoint unavailable due to applying a CU, Service Pack etc. One of my customers places an App_Offline.htm file at the root of the IIS Virtual Directory for each Web Application on each WFE server within their farm, this presents users with a nice...
  • Blog Post: SharePoint 2010 Organization Browser - Expose more than just User, Title and About Me (Sort Of).

    One of my favourite customers was very keen to display the OOB Organisation Browser web part on several of their pages but they wanted to expose more than the default values against the user. I know this can be done by clicking across to the users profile page but the extra click was not acceptable....
  • Blog Post: SharePoint: Planning for the Future - PowerShell Scripts

    I recently presented a session on planning for the future with SharePoint, as promised to the attendees, below are two of the scripts that I used in my demonstrations to audit Content databases and Site Collections. Content Database Inventory This script outputs details of all Content Databases within...
  • Blog Post: Create a SharePoint Application Pool using PowerShell

    As you may know there isn't an out of the box PowerShell cmdlet available in SharePoint 2010 or 2013 that can be used to create an Application Pool for a Web Application, New-SPServiceApplicationPool ( http://technet.microsoft.com/en-us/library/ff607595(v=office.15).aspx ) is available however this...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: Creating a Large Number of Users in AD for testing

    I recently had to troubleshoot an issue with the User Profile Service Application and needed to build a repro environment, as part of this I needed to create a large number of users in AD to import into the UPA (too many to do manually using AD Users and Computers!). I thought, there has got to be an...
  • Blog Post: Identifying Sites using the Publishing Feature

    Below is a simple script that iterates through all Site Collections in all Web Applications within a farm and outputs a list of Site Collections that have the Publishing Feature enabled, I needed this recently during a customer engagement to help them to assess how widespread the Publishing Features...
  • Blog Post: The Magically Disappearing "Destination Folder" Option

    I recently investigated an interesting issue for a customer. As you may know, when uploading a Document to a Document Library you are presented with the option to select which folder within the library to upload the document to, if the document library contains any folders. In the example below, you...
  • Blog Post: Determine Site Template

    Another day, another PowerShell script! This time a script that will return details about the Site Template that a SharePoint site is using. A customer of mine has a large number of custom site definitions and regularly needs to determine the template that a specific site uses to aid with troubleshooting...