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

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…

Read More