GithubHelp home page GithubHelp logo

mosalah82 / o365-bulk-assign-licenses Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joaovitoriasilva/o365-bulk-assign-licenses

0.0 0.0 0.0 3 KB

Office 365 Bulk Assign licenses (PowerShell AzureAD V2)

PowerShell 100.00%

o365-bulk-assign-licenses's Introduction

o365-bulk-assign-licenses

Office 365 Bulk Assign licenses (PowerShell AzureAD V2)

DISCLAIMER: The cmdlets used in this script may change. Test this script before using it in a production environment.

Script changes:

  • 1.0 - Initial version;
  • 1.1 - Changed return to continue in foreach loop;
    • Changed user usage location validation from empty string to $null.

Based on the service plans provided by the user, the script will assign a new Office 365 license or change the service plans of the desired license. If the user already has service plans activated for that SKU, the script will add them to the flow in order to mantain that service plans activated.

  • Example: If user has Exchange role activated and the service plans provided are SharePoint Online, in the end, the user will have both the service plans activated.

This script uses an additional CSV file expected to be in the same location of the script file with the following nomenclature: LicenseUsers.csv. This CSV is expected to have a column named "UserPrincipalName" with the UserPrincipalName of the users that are aimed to be targeted.

Notes:

  • Change the $SKU and $enabledPlans variables to the desired values;
  • To view the available subscription SKUs: Get-AzureADSubscribedSku;
  • To view the available service plans for a specific SKU: (Get-AzureADSubscribedSku | Where-Object {$_.SkuPartNumber -eq 'EMSPREMIUM'}).ServicePlans;
  • Do "get-help .\AddLicenses.ps1 -full" to see the script help.

Requirements:

The sample scripts are provided AS IS without warranty of any kind.

o365-bulk-assign-licenses's People

Contributors

joaovitoriasilva 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.