SharePoint List to kick off Powershell Scripts

Chilly 116 Reputation points
2021-06-03T17:00:09.89+00:00

Does anyone know how to create a list of PowerShell scripts that can be kicked off when someone selects it and puts in the parameters. Then the PowerShell script kicks off?

SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
584 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerry Xu-MSFT 7,956 Reputation points
    2021-06-04T06:40:33.273+00:00

    Hi, @Chilly ,

    If you want to provide a simple interface for end users to run PowerShell script more easily, I will suggest you to use Azure automation (Premium Action) to run PowerShell Scripts in Flow.

    Here is an example: https://ashiqf.com/2020/05/26/execute-sharepoint-online-powershell-scripts-using-power-automate/

    Or here is a somehow tricky way using UI flow to record the actions. However I do not think you can choose from a list of scripts in this way with simple set up. Maybe it is possible to create a flow for each script and ask users to run the required one. Obviously it does not fit the situation where you need to handle tens of scripts.

    Video reference :https://www.youtube.com/watch?v=s-Z-Y4cErAE

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.