question

rameezhasan-1234 avatar image
0 Votes"
rameezhasan-1234 asked EmilyDu-MSFT commented

PowerShell script to changeSharepoint Designer workflow statuses

I want to change the status of workflow using powershell script.

If you go into workflow settings in a library in Sharepoint, and click on Remove a workflow, you see the 3 settings I'm referring to: "Allow", "No New Instances", and "Remove".

I'm thinking there must be a way to update these workflow settings from a powershell script.

based on forur parameters:

Param 1 - Site URL
Param 2 - List/Library Name
Param 3 - Workflow Name
Param 4 - Status of WF ("Allow", "No New Instances", and "Remove")




Does anyone know how?

windows-server-powershellsharepoint-devsharepoint-workflow
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@rameezhasan-1234

Whether you use SharePoint Online or SharePoint Server? Workflow 2010 or workflow 2013?

0 Votes 0 ·

0 Answers