I'm using SharePointOnline's Modern UI.

I want to execute a PowerShell script for updating SharePoint permissions at a specified time.
Is there a way to achieve this using PowerAutomate or some other method or service?
Ideally, there are no additional costs.

I would appreciate any ideas or pointers.

2 Answers 2


If you are running the PowerShell from a Windows machine then you can use Windows Task Scheduler to schedule the running of your PowerShell script.

To run the PowerShell script from a cloud environment, you could run the PowerShell using an Azure function which can either be on a schedule or triggered via Power Automate.

  • Azure function is free?
    – Hyonta
    Commented Jan 14, 2021 at 13:10

1.Azure Automation is an option for you to execute PowerShell script at a specified time.

2.You could schedule your PowerShell script by using task scheduler.


How to run Powershell script on Sharepoint Online at 9 o'clock P.M

Task Scheduler for developers

How To Automatically Run PowerShell Scripts at a Scheduled Time

  • Thank you for your information. Azure Automation is free?
    – Hyonta
    Commented Jan 14, 2021 at 13:12
  • You could start free. Commented Jan 15, 2021 at 7:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.