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…
Category: PowerShell
Convert Sharepoint users from classic to claims based authentication.
When panning to change your farm authentication method from classic to Claim based, you will need to convert all SharePoint users on the farm to support claim based authentication. The…
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…
Copy SharePoint 2010 site from one site collection to another
In this test case I needed to copy (not move) a SharePoint 2010 site with its content from one site collection to another within the same sp2010 farm. Creating Site Template…
SharePoint 2010 and 2013 PowerShell script for showing list columns
clear $site= New-Object Microsoft.SharePoint.SPSite (“http://domain/site/”) $web=$site.OpenWeb() $list=$web.Lists[“listName”] $list.Fields |select ID, title, internalname,type | more
PowerShell scripts for workflows
links to good PowerShell scripts for workflows SP2007 PowerShell Script To Find Instances Of Running SharePoint Workflow $assoc = $spList.WorkflowAssociations | where {$_.BaseId -eq $workflowBase.Id.ToString() ` -and $_.RunningInstances -gt 0} if($assoc…
Server error in ‘/’ Application when creating a sub-site with full control user
When creating a new publishing sub-site or a new page in a new web application, the user (with full control ) encounters the following server side .Net error. In order to make sure…