Skip to content

Commit f37cf97

Browse files
authored
Update README.md
1 parent a27775b commit f37cf97

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
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.

0 commit comments

Comments
 (0)