Launch multiple M365 tenant PowerShell PNP console

Demo how to quickly launch multiple M365 tenant PowerShell PNP console. When supporting PROD, TEST, DEV lifecycle or have multiple M365 tenants we can leverage Devolutions Remote Desktop Manager (RDM) to have many PowerShell “profiles” and quickly authenticate with Client ID and Client Secret.

Great for M365, SharePoint Online SPO, and PowerPlatform tasks including:

  • View SharePoint sites
  • Increase SharePoint site quota
  • Grant SharePoint site administrator
  • Create SharePoint Site App Catalog
  • Generate CSV reports of sites and usage
  • Provision OneDrive users
  • Review M365 tenant security settings

Download RDM

https://devolutions.net/remote-desktop-manager/home/downloadfree

POWERSHELL

# Configuration
$SiteURL        = "https://TENANT-admin.sharepoint.com/"
$ClientID       = "GUID-HERE"
$ClientSecret   = "SECRET-HERE"
# Connect to the Site
Connect-PnPOnline -URL $SiteURL -ClientID $ClientID -ClientSecret $ClientSecret -WarningAction "Ignore"
Get-PnPTenantSite | Format-Table -AutoSize

VIDEO

SCREENSHOT

REFERENCES

https://medium.com/ng-sp/sharepoint-add-in-permission-xml-cheat-sheet-64b87d8d7600

https://pnp.github.io/powershell/

https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html

Return to Top ▲Return to Top ▲