Monthly Archives: June 2022

M365 Licensing using msol and AzureAD powershell

M365 licensing can be tricky sometime. Below cmdlt flow will help you sort out your tenant licensing information properly. PS C:\> Install-Module AzureAD PS C:\> Connect-AzureAD PS C:\> Install-Module MSOnline PS C:\> Connect-MSolservice Next lets get the list of all … Continue reading

Posted in Azure, Powershell | Leave a comment

Script to get MS Team user information

You will come across requirement where you need to fetch users MS Teams related information e.g. you are going to enable voice services for the users, so you need to get the required information whether user have required license, usage … Continue reading

Posted in MS Teams, Powershell | Leave a comment

MS Teams Auto-Attendant call forwarding to External PSTN number with Direct Routing

We have a situation where MS Teams auto attendant call need to be get forwarded to external PSTN numbers. As we know Auto-attendant make use of number assigned to resource account. So basically when we are configuring forwarding in Auto … Continue reading

Posted in MS Teams, Powershell | Leave a comment

Caller ID policies to mask user number with Resource account number in MS Teams

Masking caller id is one among the standard phone system feature. When MS Teams user call someone on PSTN number, organization want to show the the common phone number e.g. call from reception should show reception desk number instead of … Continue reading

Posted in MS Teams, Powershell | Leave a comment

Connect various M365 services from VScode

Install PowerShell extension in VSCode Connect to MS Teams from VSCode: Connect to Exchange online from VSCode: Connect to AzureAD from VSCode: Connect to Azure from VSCode:

Posted in Powershell | Leave a comment

Script to connect MS Teams

Sometime you may want to avoid entering user-name and password every time. Below is the small script you can use it to connect to MS Teams. Last line of the below code is just to change the PowerShell title. This … Continue reading

Posted in MS Teams, Powershell | 2 Comments

Exchange PowerShell script to convert DL to contact

Recently I have came across a requirement where customer want to remove few of the DL but they want to keep the email-id mapped to a new contact. All the existing attribute should be stamped to the new contact. LegacyDN … Continue reading

Posted in Exchange Online, Powershell | Leave a comment

AAD Connect flow

Azure AD Connect allows you to sync your on-premises AD forest objects with Azure AD. This sync mainly include Active Directory user accounts & groups. In reverse with a very limited capability Azure AD can sync data back to the … Continue reading

Posted in Azure AD Connect | Leave a comment

MS Teams PSTN call flow with Direct Routing

Lets try to investigate what happens when user dials a PSTN number from their MS Teams client. User launched dial pad in MS Teams. User dialed a number +1-425-765-6xxx Check for the dial plan (policy) assigned to the user. If … Continue reading

Posted in MS Teams | Leave a comment

Auto Attendant in MS Teams

Create Resource account for call queue and auto attendant. Basically this is the account which will be mapped to call queue Or auto-attendant and a phone number will be assigned to these resource accounts. PS C:\>New-CsOnlineApplicationInstance -UserPrincipalName “RA_CQ@domain.com” -DisplayName “Test … Continue reading

Posted in MS Teams | Leave a comment