August 29, 2021

 How to prevent/prohibit the creation of SharePoint 2010 workflows (on-premises)?


In case with in your organisation, if you want to meet the below Constraints (for the SharePoint on-premises env's SPS 2013, 2016, 2019):

  • Want existing SP10WFs to continue to work.
  • Want existing SP13WFs to continue to work.
  • Want the ability to edit/delete existing SP10WFs.
  • Want the ability to create/edit/delete SP13WFs.
  • Want the ability to continue using SharePoint Designer.

Why?

SP10WF is being retired in SPO and need to stop proliferation of SP10WF in preparation for migration to O365.

Then do below from your SharePoint management shell (run as Farm account)

$wa = Get-SPWebApplication https://webAppUrl
$wa.AllowCreateDeclarativeWorkflow = $false
$wa.Update()


then after that once you open SharePoint designer to create new workflow you wont see option to create a new SharePoint 2010 workflow:


hope this helped... :)