Below you will find pages that utilize the taxonomy term “MicrosoftTeams PowerShell”
posts
How to Hide the Files Tab in Microsoft Teams with PowerShell
Introduction By default, every Microsoft Teams channel includes a Files tab, which provides access to SharePoint and OneDrive storage. While you can’t rename the Files tab (see my post here), you can control its visibility using Teams Files Channel Policy settings.
In this post, I’ll demonstrate how to use PowerShell to hide or show the Files tab in Teams channels by configuring the SPChannelFilesTab and NativeFileEntryPoints policy settings.
Background Tony Redmond’s article, Teams Native Files Policy Disables SharePoint and OneDrive Access, explains how these policy settings work:
posts
How to Add a User as Owner to a Microsoft Teams Channel with PowerShell
Introduction When managing Microsoft Teams via PowerShell, you may need to assign a user as an owner of a specific channel. However, attempting to add a user directly as an owner can result in an error if the user is not already a member of the channel.
Example Error:
Add-TeamChannelUser -GroupId $t.GroupId -DisplayName TestPermission -User AdeleV@4g6zf4.onmicrosoft.com -Role Owner Add-TeamChannelUser: Failed to find the user: AdeleV@4g6zf4.onmicrosoft.com on the roster of channel: TestPermission.