question

Chilly-2906 avatar image
0 Votes"
Chilly-2906 asked JerryXu-MSFT answered

SharePoint List to kick off Powershell Scripts

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
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.

1 Answer

JerryXu-MSFT avatar image
0 Votes"
JerryXu-MSFT answered

Hi, @Chilly-2906 ,

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.

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.