This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sample Usage | |
| # Set-SPListWorkflowAssocationCleanup -WebUrl "http://intranet" -ListName "Shared Documents" -CleanupDays 365 -ReportOnly:$false | |
| function Set-SPListWorkflowAssocationCleanup { | |
| param ( | |
| [string] $WebUrl = $(Read-Host -prompt "Enter a Url"), | |
| [string] $ListName = $(Read-Host -prompt "Enter a List Name"), | |
| [int32] $CleanupDays = $(Read-Host -prompt "Enter the number of Cleanup Days"), | |
| [switch] $ReportOnly = $true | |
| ) |