Skip to content

martinagrom/Office-365-Groups-and-Microsoft-Teams-PowerShell-Samples

Repository files navigation

Office 365 Groups and Microsoft Teams PowerShell MasterClass

Demos by atwork-it.com. Contributors: Martina Grom, Toni Pohl, Christoph Wilfing

Management of Office 365 and Microsoft Teams can be done in a lot of ways. The following scripts show essential PowerShell scripts you need to manage your Office 365 Groups and Microsoft Teams at scale. You must be a Global Administrator in the Microsoft 365 tenant to run all scripts. Use and adapt the scripts as required.

Required PowerShell modules

You get the latest PowerShell modules from the PowerShell Gallery:

Install the modules

Use the following commands to install the PowerShell modules in an environment (as Administrator) or for your current user with the command as here:

  • Install-Module -Name MicrosoftTeams -Force -scope CurrentUser
  • Install-Module -Name AzureADPreview -Force -scope CurrentUser
  • Update-Module -Name AzureADPreview -Force

Run the scripts anywhere

You can use the scripts on your computer with the required modules installed, or in Azure Automation Accounts or Azure Functions as well - in all environments, where Microsoft PowerShell is supported. To start with Azure Automation Accounts, check out Create an Azure Automation account.

Structure of the scripts

The scripts show demos how to manage Office 365 Groups and Microsoft Teams in an Office 365 tenant. The scripts can be used as start for adapting your custom Office 365 tenant management. To make it easy to follow, the scripts are numbered by topic.

Cross-Reference

For developers

Alternatively, developers can use the Microsoft Graph for accomplishing similar tasks. Check the group properties with Graph Explorer aka.ms/ge, similar like here:

Have a good Office 365 Groups and Teams management with these PowerShell scripts!

About

Office 365 Groups and Microsoft Teams PowerShell Samples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages