SPOSiteOffice365Group switch to create a team
1 Topiclooking for powershell script to "create a team"
So the history is we had 260 subsites in SharePoint on premises 2010 that we migrated to 260 SPO site collections created sans groups. Next we associated each site collection to a new group using powershell script like so: $sitelist = Import-Csv C:\Users\sp_farmadmin\Documents\modurllist.csv $Cred = Get-Credential Connect-SPOService -Url "https://obfuscatedtenantname-admin.sharepoint.com "-Credential $Cred foreach ($SiteURL in $sitelist) { Set-SPOSiteOffice365Group -Site $SiteURL.SiteURL -DisplayName $GroupDisplayName.GroupDisplayName -Alias $GroupDisplayName.GroupDisplayName } …. so now if you connect to any of the site url's you'll see a Microsoft Teams Create a Team prompt in lower left corner... The question, is there a powershell switch to click that button that I can run in a foreach loop? Also when I associate the SPO site to new MS Teams using gui, the SharePoint owners and members groups are auto added to the group. I'll need a way to automate this in powershell as well. Thanks for any help! Regards, /RobinSolved6.1KViews1like2Comments