Skip to content

Instantly share code, notes, and snippets.

View AndersRask's full-sized avatar

Anders Rask AndersRask

  • Fellowmind
  • Aarhus
View GitHub Profile
<#
.SYNOPSIS
This script will set the MUI language setting on all user profile properties on a SharePoint 2013 On-Premises farm
.EXAMPLE
$stoppedServices = Stop-SPService
.PARAMETER Site
A SharePoint site to be used as context for user profile manager
.PARAMETER CultureInfo
The locale that is to be set on user profiles
#>
<#
.SYNOPSIS
Stops relevant services to speed up farm patching
Returns the services that was stopped, so that Start-SPService knows what services to start again.
.EXAMPLE
$stoppedServices = Stop-SPService
#>
function Stop-SPService
{
[CmdletBinding()]