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