Minecraft Education Edition PowerShell User Management Tools



The following PowerShell scripts can be used to automate the Creation and Management of accounts licensed for Minecraft Education Edition, you can use these scripts to create multiple users for Minecraft Education Edition, and manage student access to their accounts by disabling student sign in access when they are not in the classroom, and enabling student sign in access when in the classroom.

Using these scripts has dramatically simplified my workflow, for programs I run we take registrations via EventBrite, being able to just import that into a PowerShell script and have all the processing done for me is a huge productivity gain, I no longer need to copy and paste and transform data, and manually create and license users, the script does it all for me.

Before the first class I run the "Create users from CSV" script, drag and drop my .csv file, and it does everything, creates my users, licenses them for Minecraft Education Edition, and removes any special characters in their names.

After the class is over, if its a one off event, I run the "Delete users" script to remove all the students accounts and reclaim all the licenses, or if its a ongoing program I run the "Disable sign in" script which stops students using their accounts at home.

These scripts have greatly improved my workflow in Minecraft Education Edition and I hope that these scripts help you to manage your users too.

Prior to using the following scripts ensure to follow all setup instructions, I would recommend downloading all the scripts and making all the changes needed so you are fully ready to use them.


Create Users from CSV 

Creates users from a provided CSV file, the script uses the "First Name" and "Surname columns of a CSV file to create and license the accounts for Minecraft Education Edition, as well as applying users with the job title "Minecraft Education" for easy filtering, this script was designed around EventBrite but could be used with any other CSV file provided the column names match.

Setup

Modify the following lines of the script to make this work within your Office 365 tenant.

  • Line 6 - Change the string to your username to simplify sign in
  • Line 61 - Specify your domain for new user accounts to be created with
  • Line 68 - Specify your domain in the license assignment and confirm license package
  • Line 87 and 94 - Ensure your Product ID and SKU matches with your M:EE licenses, learn how to find yours here https://lukestoolkit.blogspot.com/2019/01/checking-for-sku-and-product-id-for.html

Delete Users

Deletes all users with the Job Title "Minecraft Education" the script will also check for licensed accounts without the job title and output them for attention.

Setup

Modify the following lines of the script to make this work within your Office 365 tenant.

Disable Sign In

Gets all users with the "Minecraft Education" job title and disables sign in so users can't sign in at home.

Setup

  • Line 3 - Change the string to your username to simplify sign in
  • Line 11 - Change the string to your username to prevent disabling sign in for your own account

Enable Sign In

Gets all users with the "Minecraft Education" job title and enables sign in so users can sign into Minecraft Education Edition in the classroom.

Setup

  • Line 3 - Change the string to your username to simplify sign in
  • Line 11 - Change the string to your username to prevent modifying your own account

Install

If the required PowerShell modules aren't installed this script will install them for you, this script will automatically ask for elevation and run as an Administrator upon your approval, modules in PowerShell cannot be installed as a standard user account.


Download the scripts

You can download all the Minecraft Education Edition PowerShell scripts via Github here: https://github.com/lukegackle/Minecraft-Education-Edition-PowerShell-User-Management-Tools






Icons made by itim2101 from www.flaticon.com is licensed by CC 3.0 BY
Icons made by Eucalyp from www.flaticon.com is licensed by CC 3.0 BY

Was this helpful?

Yes No


Comments