File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 1- # SharePoint-Online-Automatic-Custom-Script-Activation
2- This PowerShell script enables the automatic activation of custom scripts on SharePoint Online pages.
1+ ## ⚠️ Requirements
2+
3+ To run this script, install PowerShell 7 with the SharePoint Online Module.
4+
5+ ## 📃 Preparations
6+
7+ First, a tenant app must be created in the Entra admin centre with the following permissions:
8+
9+ ``` bash
10+ SharePointTenantSettings.ReadWrite.All
11+ Sites.ReadWrite.All
12+ User.Read
13+ Sites.FullControl.All
14+ Sites.Manage.All
15+ ```
16+
17+ You will need the client-id and the client-secret to run the script.
18+ Replace <CLIENTID > and <CLIENTSECRET > in this script with your clientid and clientsecret.
19+
20+ To run this script automatically every day, create a task in the windows task scheduler and link the script.
You can’t perform that action at this time.
0 commit comments