This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Optional, To get your tenant ID via PowerShell | |
| Connect-msolservice | |
| Get-MSOLCompanyInformation | select objectID | |
| # Install SharePoint PowerShell If needed | |
| Install-Module SharePointPnPPowerShellOnline | |
| # Example https://$tenant.sharepoint.com/sites/$siteName | |
| $tenant = 'Enter your Tenant Name in Here' # xxxx.onmicrosoft.com | |
| $tenantId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' #Tenant ID, can be retrieved from Azure AD or PowerShell under optional. |