Showing posts with label Teams. Show all posts
Showing posts with label Teams. Show all posts

17 February 2022

Reset the Teamsmeetingpolicy to "Global" for all users

Some users reported that they couldn't use certain features, such as "transcription".

When comparing myself with the affected user I noticed that my Teamsmeetingpolicy had no policy set.
I would expected it to show "Global". Turns out the "Global policy" isn't a user policy and therefore doesn't show up with a name.

The affected user did have a policy set: "RestricetedAnonymousAccess".

Now I had to give those users the "Global" Teamsmeetingpolicy and came up with this:

 1
2
3
4
5
6
7
$users = Get-CsOnlineUser -ResultSize unlimited
foreach($User in $Users)
{
$userId = $User.UserPrincipalName
Write-Host $userId
Grant-CsTeamsMeetingPolicy -Identity $userId -PolicyName $Null -ErrorAction SilentlyContinue
}

This resets all users to no policy and thus the "Global" policy.

Maybe it is a bit much for large environments, it takes quite a long time to run.
With some filtering this could be done quicker.

 1
2
3
4
5
6
7
$users = Get-CsOnlineUser -ResultSize unlimited -Filter {Teamsmeetingpolicy -ne $null}
foreach($User in $Users)
{
$userId = $User.UserPrincipalName
Write-Host $userId
Grant-CsTeamsMeetingPolicy -Identity $userId -PolicyName $Null -ErrorAction SilentlyContinue
}

22 October 2021

Teams Team not showing in Outlook groups - Microsoft 365 group not showing in Outlook groups

Learned something today.

If you create a Teams Team or a Microsoft 365 group, and these were created via Microsoft Teams, they are hidden from Outlook by default.
If you want them to show in both the Outlook left navigation and the address book, you can use Set-UnifiedGroup to flip -HiddenFromExchangeClientsEnabled to $false.

Connect to Exchange Online PowerShell.

To get a group and it's current settings:

Get-UnifiedGroup -id YourGroupName | select displayname,hidden*            
            
DisplayName        HiddenFromExchangeClientsEnabled HiddenGroupMembershipEnabled HiddenFromAddressListsEnabled            
____               ________________________________ ____________________________ _____________________________            
YourGroupName                                  True                        False                         False

To unhide a group:
Set-UnifiedGroup -Identity YourGroupName -HiddenFromExchangeClientsEnabled:$false
Check your adjustment:
Get-UnifiedGroup -id YourGroupName | select displayname,hidden*            
            
DisplayName        HiddenFromExchangeClientsEnabled HiddenGroupMembershipEnabled HiddenFromAddressListsEnabled            
____               ________________________________ ____________________________ _____________________________            
YourGroupName                                 False                        False                         False
Set all groups in your organization to be visible in Outlook:
Get-UnifiedGroup -ResultSize unlimited | Set-UnifiedGroup -HiddenFromExchangeClientsEnabled:$false
Be careful with the last one, if your users have a lot of memberships to Teams the list in Outlook may get very long.

04 March 2019

Connect to all Azure & Office 365 services in one PowerShell window

We've all been there, when running some commandlets from Exchange online suddenly you need to switch to Sharepoint, AzureAD or Skype Online.

With this handy script you can connect to all services at once.
I personally always use the Exchange Online PowerShell module for this, as it will be updated when starting it so you always have the latest commandlets for Exchange Online.

There are some requirements that have to be met before hand:
  • .Net 4.5
  • Windows Management Framework 3.0 or 4.0
  • 64-bit version of Windows OS
Installed modules:
  • Azure Active Directory V2 module
  • SharePoint Online module
  • Skype for Business Online module
Execution policy needs to be at least "Remote Signed"

In the past I have created a script that installs all these requirements at once:
I try to keep this updated, so if anything fails leave me a comment.

Then you can run the lines below and connect to all the services in one PowerShell window.
Mind you, this is all for MFA enabled accounts.

# Azure Active Directory            
Connect-MsolService            
# SharePoint Online            
Connect-SPOService -Url https://domain-admin.sharepoint.com            
# Skype for Business Online            
Import-Module SkypeOnlineConnector            
$sfboSession = New-CsOnlineSession -UserName "username@domain.com" -OverrideAdminDomain domain.onmicrosoft.com            
Import-PSSession $sfboSession            
# Exchange Online            
Connect-Exopssession -UserPrincipalName username@domain.com            
# Microsoft Teams            
Connect-MicrosoftTeams            
# AzureAD            
Connect-AzureAD            
# Intune            
Connect-MSGraph