SharePoint Site Templates list

SharePoint Site Templates list using PowerShell script. This PowerShell script creates a table of available site templates with their ID’s and Titles : function Get-SPWebTemplateWithId {      $templates = Get-SPWebTemplate |…

Read More

Creating a root site collection

When creating a root site collection to a new created web application make sure to assign it the right site template. Especial when you want to migrate content from one…

Read More

PowerShell Get site collection disk size

#Large amounts of memory are often required when SPWeb, SPSite, or SPSiteAdminsitration objects are used. So the use of these objects, or lists of these objects, #in Windows PowerShell scripts…

Read More

SharePoint PowerShell Handy ADFS scripts

Adding a PowerShell sanp-in you need to use this once at each PowerShell editor session. Add-PSSnapin Microsoft.SharePoint.PowerShell   Get ADFS settings The following commands will present the current security provider…

Read More

Powershell cleaning orphan objects in content DB

The below script help to identify and clean orphan objects in content databases. clear if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) {Add-PSSnapin Microsoft.SharePoint.Powershell} $CDBs = Get-SPContentDatabase ForEach ($CDB…

Read More