Get-MSOLUser possess a standard restrict away from 500 and so the most of the banner lets us rating all the account

High so now I’ve the name of sku We have to take discover my personal student user base since all the my personal youngsters will likely be registered with that sku. To make sure I can work on a fast PowerShell order in order to generate a listing of brand new profiles that have you to license. I’ll do it and then have they display screen in direct the newest PowerShell windows since i have only have 18 pages however may want to remove they to help you a beneficial CSV on the production ecosystem.

  1. For the reason that exact same PowerShell window manage: get-msoluser -all the | where-target
  2. Once one to runs you should come across a listing like this:

Note that We have ‘-all’ listed in the fresh order once ‘get-msoluser’ regardless of if avoid using it in my monitor photos; for the reason that my personal scholar matter is actually 18 but not your’s will get be much more. All things in my personal beginner license export is pleasing to the eye nahlГ©dnout na tento web and so i today learn I could get a hold of toward only my people by the their permit and use you to to designate the newly authored messaging coverage!

Delegating new messaging rules to simply students based on their license

We’re going to combine the PowerShell demand from above you to definitely i always see every profiles to your licenses out of M65EDU_A5_Student to the Cs-TeamsMessagingPolicy command so you’re able to next apply it to the people profiles.

To achieve this we will have fun with a variable to help you domestic brand new pages we make and tubing people profiles with the Cs-Communities demand. Lower than is what the entire demand turns out: $members=get-msoluser -all | where-object

Why don’t we fall apart one order real short:– $participants ‘s the adjustable that will home the latest pages we have been attracting– Get-MSOLUser is an elementary order when using users from inside the Blue Ad / Work environment 365– We have been following trying to find user items which have an AccountSkuID matches of “M365EDU_A5_STUDENT”

Before i alter the messaging plan let us see just what a student is now tasked to ensure that once we carry on with our very own change we have something to examine. On Groups Admin Heart go to Pages throughout the leftover give routing pane.

Shortly after it operates we could after that only sorts of $people and you will drive enter to see a complete list (once more you really need to pipe your to an excellent CSV for remark in the production)

We could see that Al have 9 worldwide formula assigned and you will 0 each-affiliate procedures tasked. It indicates he is merely allotted to worldwide default guidelines which we are able to be sure from the hanging along the regulations assigned text.

We have been today ready to progress and place his, as well as almost every other pupils, to your the latest zero talk plan.

We are able to in addition to be sure just what messaging rules try put on a great pupil from the running another: Get-CsOnlineUser -Term userUPN | base DisplayName, TeamsMessagingPolicy

We could discover my personal decide to try college student Al doesn’t have anything listed for Messaging Policy given that he’s assigned the global Default:

Quick idea: when designing large scale change via PowerShell it may be smart to split this upwards to the batches. We do not security how to do this on this page however, of course something you should imagine.

Whenever you are willing to replace the chatting plan assignment so you can any college students make use of the exact same PowerShell administrator windows of ahead of work at so it command: foreach($representative inside the $members)

Why don’t we break apart that command genuine brief:– we are powering a foreach and you will creating a short-term adjustable out-of $user which will be always go affiliate by the associate off our directory of $members– our company is next incorporating the insurance policy (granting) away from “EDU No Private Chat” that individuals created earlier to every member along with their UserPrincipalName off our very own $users record