Run this while logged on to your SharePoint server to see the current settings that may affect the proper operation of the DelayActivity in your workflows. WARNING: Your auditor may not like the output from Job-Workflow-AutoClean.
# PowerShell script to display various SharePoint internal settings that may affect DelayActivity event delivery # Author: Fred Morrison # Company: Exostar: The Trusted Workspace for Global Partner Networks - www.exostar.com # Last Modification Date: 2008-04-02 # Name: SpGetSettings.ps1 # start by creating an alias for the stsadm command, allowing for 32-bit vs. 64-bit differences Set-Alias -Name stsadm -Value $env:CommonProgramFiles'\Microsoft Shared\Web Server Extensions\12\BIN\STSADM.EXE' #reference: http://technet.microsoft.com/en-us/library/cc424970.aspx Write-Host "Job-Workflow" stsadm -o getproperty -pn job-workflow -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc262432.aspx Write-Host "Job-Immdiate-Alerts" stsadm -o getproperty -pn job-immediate-alerts -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc424968.aspx Write-Host "Job-Workflow-AutoClean" stsadm -o getproperty -pn job-workflow-autoclean -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc424943.aspx Write-Host "Job-Workflow-Failover" stsadm -o getproperty -pn job-workflow-failover -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc263016.aspx # NOTE: above documenation is in error - valid values seem to be "yes" or "no", not "a value between 1 and 500" # compare with Alerts-Maximum to see source of possible copy/paste error during creation of documentation. Write-Host "Alerts-Limited" stsadm -o getproperty -pn alerts-limited -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc262842.aspx Write-Host "Alerts-Maximum" stsadm -o getproperty -pn alerts-maximum -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc262968.aspx Write-Host "Workflow-EventDelivery-Timeout" stsadm -o getproperty -pn workflow-eventdelivery-timeout -url http://localhost Write-Host "" #reference http://technet.microsoft.com/en-us/library/cc261828.aspx Write-Host "Workflow-EventDelivery-BatchSize" stsadm -o getproperty -pn workflow-eventdelivery-batchsize -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc262997.aspx Write-Host "Workflow-EventDelivery-Throttle" stsadm -o getproperty -pn workflow-eventdelivery-throttle -url http://localhost Write-Host "" Write-Host "Workflow-Cpu-Throttle (obsolete)" stsadm -o getproperty -pn workflow-cpu-throttle -url http://localhost Write-Host "" Write-Host "Workflow-TimerJob-Cpu-Throttle (obsolete)" stsadm -o getproperty -pn workflow-timerjob-cpu-throttle -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc263471.aspx Write-Host "Workitem-EventDelivery-BatchSize" stsadm -o getproperty -pn workitem-eventdelivery-batchsize -url http://localhost Write-Host "" #reference: http://technet.microsoft.com/en-us/library/cc263141.aspx Write-Host "Workitem-EventDelivery-Throttle" stsadm -o getproperty -pn workitem-eventdelivery-throttle -url http://localhost