Remove teams message from modern sites

Occasional Contributor

Well, first of all, hi all, this is my first post on the tech community and I hope you guys can help me out. I have this client who is willing to remove or disable the message displayed when you access to modern sites in SharePoint Online. I'm talking about the message that prompts you to create a Microsoft teams.


I have checked the Set-SPOTenant options and none of them seems to tackle this need. Is is even possible? 


BTW, the client is quite zealot against custom developments, so spfx extensions are a no go

6 Replies

@Rob Ellis  Thanks!! I'll try it right away. 

@Rob Ellis seems like it didn't work out. Runned the script yeterday without problems and gave it some time to refresh and nothing happened. I've been waiting some hours to see if this was one of those cases the tenant takes hours to refresh but with no luck so far. Thanks any way for your help

I'm seeing the same issue - I'll see if I can work out why it isn't working.
best response confirmed by Gonzix (Occasional Contributor)
worked it out - the script was missing a line.

Above the 'Set-PnPropertyBagValue' line, add this line:

Connect-PnPOnline -Url $web -SPOManagementShell

@Rob Ellis that worked like a charm and instantly! Too bad yesterday I thought this change wasn't been done on the web and I didn''t realize the missing connection to the web as it  is supposed to be done on a site collection by site collectio basis.