Skip to content

Instantly share code, notes, and snippets.

@rjesh-git
Created April 7, 2021 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjesh-git/81ad0da89a8904680e99cf1fcea8f751 to your computer and use it in GitHub Desktop.
Save rjesh-git/81ad0da89a8904680e99cf1fcea8f751 to your computer and use it in GitHub Desktop.
## Run this in PowerShell as Administrator
## Install PnP PowerShell Module
Install-Module -Name PnP.PowerShell -AllowClobber
Import-Module PnP.PowerShell -Force
## Change YourOffice365Domain with yours, enter the global admin creds when prompted
Connect-PnPOnline -Url https://YourOffice365Domain-admin.sharepoint.com/
## Gets all Teams in tenant
Get-PnPTeamsTeam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment