Browsed by
Author: Kathy

How to Add Bulk Users to Distribution Group in Office 365 via PowerShell 

How to Add Bulk Users to Distribution Group in Office 365 via PowerShell 

This blog helps admins add multiple members to the distribution group using PowerShell. The script accepts bulk users through import CSV and adds those users to the distribution list.    Note: This script uses the PowerShell cmdlet Add-DistributionGroupMember. Before running the script, you must install the Exchange Online Management module.  Connect-ExchangeOnline Import-CSV <FilePath> | foreach { $UPN=$_.UPN Write-Progress -Activity “Adding $UPN to group… ” Add-DistributionGroupMember –Identity <GroupUPN> -Member $UPN If($?) { Write-Host $UPN Successfully added -ForegroundColor Green } Else { Write-Host $UPN – Error occurred –ForegroundColor…

Read More Read More

Grant Delegate Permissions to Other Microsoft 365 Mailboxes using PowerShell 

Grant Delegate Permissions to Other Microsoft 365 Mailboxes using PowerShell 

Microsoft 365 allows some users to access other mailbox through delegation. Admins can delegate the permissions to another mailbox based on the organization’s requirements,    Full access – Allows modifying content and reading email from another mailbox   Send as –Allows sending emails from another mailbox   Send-on behalf – Allows sending emails on behalf of another mailbox      How to Set Mailbox Permission?   Mailbox permission can be set either through Admin Center or PowerShell. Since UI is suitable for…

Read More Read More

How to Archive Team in Microsoft Teams 

How to Archive Team in Microsoft Teams 

In Microsoft Teams, teams are created for various needs. Over time, created teams might fall out of use. For example,  In an organization, when a project ends.  In education centers, when an academic year ends.  Those teams are no longer active. So, admins can either delete or archive those teams. Deleting teams will delete all its data like chats, files, associated site collection, etc.  Archived teams can be unarchived (i.e., reactivated) in the future. So, we recommend team archiving and postponing deletion until you are…

Read More Read More

Connect to Office 365 PowerShell  

Connect to Office 365 PowerShell  

Earlier, we have blogged about connecting to Exchange Online using PowerShell. In continuation to that, this blog describes the steps to connect to Office 365 via PowerShell.   Let’s jump into it.   Install Office 365 PowerShell Module:   There are two types of modules with which you can connect to Microsoft 365/Office 365 using PowerShell.   1.AzureAD V1 (MSOnline Module) – Microsoft Azure Active Directory Module for Windows PowerShell   2.AzureAD V2 (AzureAD Module) – Azure Active Directory PowerShell for Graph   Since the Azure AD V2 module does not replace all the functionalities provided…

Read More Read More

Top 10 PowerShell Cmdlets to Manage Microsoft Teams using PowerShell 

Top 10 PowerShell Cmdlets to Manage Microsoft Teams using PowerShell 

Microsoft Teams helps people in the organization to communicate and share files with people inside and outside the organization. Microsoft Teams usage has increased a lot in this remote situation. It results in the demand of managing Microsoft Teams by Administrators. Admins can either use Teams admin center or PowerShell to manage their Teams environment. But most admins prefer PowerShell due to its flexibility and operation speed. If you are new to PowerShell or Office 365, it is really challenging to identify the right cmdlet.   So,…

Read More Read More

Get All SharePoint Online Sites using PowerShell 

Get All SharePoint Online Sites using PowerShell 

Sites are the root component of SharePoint. Sites can be created directly or by creating new teams or private channels in Microsoft Teams. So, admins need to keep an eye on the list of sites available in their organization. This blog helps you find and export all the SharePoint Online site collections and their details using PowerShell.    You can use the Get-SPOSite cmdlet to retrieve a list of all site collections in the tenant. Before proceeding with the cmdlets, you must connect to the SharePoint Online PowerShell module.   After connecting…

Read More Read More

Connect to Exchange Online PowerShell 

Connect to Exchange Online PowerShell 

Exchange Online PowerShell helps administrators to manage their Exchange Online Environment more effectively. EXO V2 module allows admins to create remote PowerShell sessions by using both  Modern authentication  Multi-factor authentication  Let’s see how to install and connect Exchange Online PowerShell using the EXO V2 module.  Install Exchange Online PowerShell Module:  To install EXO V2 module, follow the below steps.  Step 1: Start Windows PowerShell with the “Run as administrator” option.   Step 2: Run the below cmdlet to install the Exchange Online PowerShell V2 Module (ExchangeOnlineManagement)   Install-Module –Name ExchangeOnlineManagement  Note: To identify the installed EXO V2 module’s…

Read More Read More

How to Connect to Microsoft Teams Using PowerShell 

How to Connect to Microsoft Teams Using PowerShell 

Microsoft Teams has its PowerShell module called ‘MicrosoftTeams’. It helps administrators manage Teams, policies, and their settings through PowerShell.    Install Microsoft Teams PowerShell Module:   To download and install Microsoft Teams PowerShell module, run the following cmdlet in the Windows PowerShell.   Install-Module -Name MicrosoftTeams    After installing, you need to import the Microsoft Teams module to avoid the following error: ‘Connect-MicrosoftTeams is not recognized as the name of a cmdlet’.   To import the module, execute the below cmdlet.   Import-Module –Name MicrosoftTeams     Connect to Microsoft Teams PowerShell:  …

Read More Read More

Connect to SharePoint Online PowerShell 

Connect to SharePoint Online PowerShell 

If you are new to SharePoint or managing a small organization, you can use the SharePoint admin center. But the admin center is not suitable if you want to automate the process or manage a large organization. In that case, PowerShell is the only option. To manage SharePoint Online through PowerShell, install SharePoint Online Management Shell and connect to the SharePoint Online service.  How to Install SharePoint Online Management Shell:  To install the SharePoint Online PowerShell module, open the Windows PowerShell in administrator mode and install the module using the following…

Read More Read More

Opt-in to the Exchange Online Endpoint for Legacy TLS Clients using SMTP Auth 

Opt-in to the Exchange Online Endpoint for Legacy TLS Clients using SMTP Auth 

We all know that Exchange online ended support for TLS 1.0 and TLS 1.1 in 2020 to meet the security and compliance requirements. However, Microsoft still allows clients to use legacy TLS versions to connect with Exchange Online.  In 2022, Microsoft has planned to completely disable older TLS versions in Exchange Online to improve security. If your organization still uses clients that aren’t compatible with TLS 1.2, then the new opt-in endpoint can be set to use the previous versions…

Read More Read More