Get-MSOLUser have a default restriction of 500 therefore the all banner permits us to see all accounts

Get-MSOLUser have a default restriction of 500 therefore the all banner permits us to see all accounts

Great so now i’ve the name of sku I want to used to discover my personal student user base since all my personal children ought to be certified thereupon sku. To make sure i could run a fast PowerShell demand to generate a list of the users which have that license. I’m going to do this and have it showcase directly inside PowerShell windows since I only have 18 consumers however you might want to dump it to a CSV in your creation surroundings.

  1. Because same PowerShell windows operate: get-msoluser -all | where-object
  2. As soon as that works you should read an inventory similar to this:

Notice that You will find a€?-all’ listed in the command soon after a€?get-msoluser’ though don’t use it in my own screen shots; the reason being my scholar amount is 18 nevertheless your’s could be even more. All things in my scholar licenses export is pleasing to the eye and so I now discover i could pick on just my pupils by their particular permit and employ that to designate the recently created texting policy!

Assigning the texting policy to only college students centered on her permit

We’re going to integrate our PowerShell command from above we regularly read all customers together with the permit of M65EDU_A5_STUDENT making use of Cs-TeamsMessagingPolicy order to next use it to the people users.

To get this done we intend to use a changeable to accommodate the people we pull-in and pipe those consumers into the Cs-Teams order. Down the page is really what the general command appears like: $members=get-msoluser -all | where-object

Why don’t we break-down that demand real quick:a€“ $people may be the changeable that dwelling the customers our company is pulling ina€“ Get-MSOLUser is actually a general demand when working with users in Azure advertising / workplace 365a€“ Our company is subsequently shopping for individual objects which have an AccountSkuID complement of a€?M365EDU_A5_STUDENTa€?

As soon as they runs we can easily then simply type $users and newspapers type to see the total record (once again you need to pipe your own website to a CSV for overview in creation). Below you’ll see the original order run with me personally evaluating the customers from inside the varying:

We have been now prepared to move forward along with their, and all of some other people, to the brand new zero talk plan

Before we change the messaging coverage let’s see what a student is now allocated making sure that as soon as we continue with the help of our change we one thing to contrast. Inside Teams Admin middle visit people into the left hand navigation pane.

We could note that Al features 9 global strategies designated and 0 per-user plans allocated. This implies he is just allotted to international standard strategies which we could validate by hanging around strategies allocated book.

We could also examine what messaging policy is used on a student by run the following: Get-CsOnlineUser -Identity userUPN | ft DisplayName, TeamsMessagingPolicy

We can see my test college student Al doesn’t have anything indexed for texting Policy because he could be allocated the worldwide standard:

Quick suggestion: when creating large-scale improvement via PowerShell it may possibly be wise to break this up into batches. We do not cover just how to do that in this post but positively something to consider.

If you find yourself prepared replace the messaging rules assignment to your pupils use the same PowerShell admin window from before manage this command: foreach($member in $members)

Let’s break down that demand genuine quick:a€“ the audience is run a foreach and producing a short-term adjustable of $member which will be accustomed run individual by user from your directory of $membersa€“ our company is next incorporating the insurance policy (giving) of a€?EDU No Private Chata€? that we produced early in the day every single user using their UserPrincipalName from your $members checklist