Skip to content

Instantly share code, notes, and snippets.

@dennyweiss
Created October 22, 2018 10:58
Show Gist options
  • Save dennyweiss/892b542ed94feb09a3346c1cb79c69c8 to your computer and use it in GitHub Desktop.
Save dennyweiss/892b542ed94feb09a3346c1cb79c69c8 to your computer and use it in GitHub Desktop.
Enable anonymous guest sharing in Teams - Powershell snippet
$teamurl="https://<admin-url>.sharepoint.com"
$siteurl="https://<tenant-name>.sharepoint.com/sites/<team name>"
Connect-SPOService -Url $teamurl
Get-SPOSite -Identity $siteurl | select SharingCapability
Set-SPOSite -Identity $siteurl -SharingCapability ExternalUserAndGuestSharing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment