Created
October 22, 2018 10:58
-
-
Save dennyweiss/892b542ed94feb09a3346c1cb79c69c8 to your computer and use it in GitHub Desktop.
Enable anonymous guest sharing in Teams - Powershell snippet
This file contains 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
$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