Get-MSOLUser features a standard limitation of 500 therefore the all flag permits us to have all accounts

Get-MSOLUser features a standard limitation of 500 therefore the all flag permits us to have all accounts

Great so now i’ve title from the sku I want to used to select my personal beginner individual base since all my college students must certanly be certified with this sku. To make sure I can run an easy PowerShell demand to generate a list of the customers with that permit. I’m going to do so and now have it display directly for the PowerShell screen since I have simply have 18 consumers however may want to dispose of it to a CSV inside creation atmosphere.

  1. In this exact same PowerShell windows operate: get-msoluser -all | where-object
  2. As soon as that operates you ought to discover a list similar to this:

Notice that We have a€?-all’ placed in the demand just after a€?get-msoluser’ though do not use they during my monitor photos; for the reason that my personal college student matter is 18 nevertheless the’s may be so much more. Everything in my personal student license export is pleasing to the eye so I today learn I can pick in simply my personal youngsters by their permit and use that to assign our very own newly developed texting policy!

Assigning the texting rules to only students based on their licenses

We’re going to combine all of our PowerShell demand from above we regularly see all consumers together with the license of M65EDU_A5_STUDENT using Cs-TeamsMessagingPolicy demand to after that apply it to those customers.

To do this we’re going to incorporate a variable to accommodate the consumers we pull-in immediately after which pipe those customers in to the Cs-Teams demand. Down the page is what the general command appears to be: $members=get-msoluser -all | where-object

Let us break up that order actual rapid:a€“ $members is the variable that may hold the users our company is taking ina€“ Get-MSOLUser try a standard order when working with users in Azure advertisement / workplace 365a€“ we have been next looking for user things having an AccountSkuID fit of a€?M365EDU_A5_STUDENTa€?

Once it operates we could subsequently simply type $customers and press input to see the record (again you will want to pipe your own to a CSV for analysis in production). Below you will notice the initial demand run in conjunction with me reviewing the members from inside the variable:

We have been now prepared to progress and set their, as well as more children, to the latest zero cam plan

Before we replace the texting plan let’s see what students is currently assigned so as that as soon as we carry on with the help of our changes there is something you should evaluate. When you look at the Teams Admin heart visit consumers for the left-hand routing pane.

We are able to note that Al enjoys 9 global procedures designated and 0 per-user plans assigned. This means he could be best allotted to global standard strategies which we can confirm by hovering on top of the plans assigned book.

We could also confirm just what chatting plan is used on students by running the immediate following: Get-CsOnlineUser -Identity userUPN | ft DisplayName, TeamsMessagingPolicy

We can read my test beginner Al has nothing detailed for Messaging coverage because they are designated the worldwide standard:

Fast tip: when making large-scale changes via PowerShell it may be a good idea to split this up into batches. Do not manage how exactly to do that in this article but positively something you should start thinking about.

If you’re willing to change the texting policy project to all your children make use of the exact same PowerShell administrator screen from before work this order: foreach($representative in $users)

Let us break-down that demand real fast:a€“ our company is run a foreach and generating a short-term changeable of $affiliate which will be accustomed go individual by consumer from our selection of $membersa€“ we have been subsequently adding the insurance policy (giving) of a€?EDU No Private Chata€? that people created past to every member utilizing their UserPrincipalName from our $users list

Leave a comment

Your email address will not be published. Required fields are marked *