Giter Site home page Giter Site logo

msteamsbulkuser's Introduction

This simple batch script uses Microsoft Teams module for powershell to add people to teams using a csv.

Update 15.08.2020

Now you can run the powershell.ps1 script which will take care of the module installation and login for you. Or else you can use the same script.bat file.

Prerequisites

  • In your search bar in Windows 10 or in your Start button, search for PowerShell. Select the Windows PowerShell app and right click and Run as administrator.

  • Then you need to install Microsoft Teams module in Powershell. This allows us to manipulate teams with command lines. Type following command in your powershell window.

      Install-Module -Name MicrosoftTeams
    
  • Command will prompt for installation confirmation. Select yes to all and proceed.

  • If you do not see any errors, you are good to go.

  • Then, we need to login to MS Teams using Powershell.

      Connect-MicrosoftTeams
    

    This will popup an login window and you need to login with the correct teams account.

Running the Script

You need following information before running the script.

  • Group ID of the team.

    You can run

      Get-Team    
    

    command to find all the group IDs of your teams.

    Else you can get the teams invite link from teams UI. You can find the group Id in the URL parameters.

  • Create a csv (comma seperated values) file.

    The simplest way to achieve this is to open a notepad and type following

    email
    [email protected]
    [email protected]
    [email protected]

then save that in .csv format. For this example I am going to save it as myemails.csv

You can run the script.bat now

msteamsbulkuser's People

Contributors

gihanrcg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.