Get-MSOLUser keeps a standard restriction of 500 so the all banner we can get all accounts
Great now i’ve title from the sku I want to used to get a hold of my personal college student user base since all my students need licensed thereupon sku. To be certain I’m able to operate an instant PowerShell demand to generate a list of the people with that license. I’ll do this and have now they showcase straight from inside the PowerShell window since I have only have 18 users you may want to dispose of they to a CSV in your creation ecosystem.
- In that same PowerShell screen run: get-msoluser -all | where-object
- As soon as that runs you ought to discover an inventory similar to this:
Realize that i’ve a€?-all’ placed in the order right after a€?get-msoluser’ though don’t use it in my own monitor shots; simply because my personal pupil amount is 18 but your own’s might far more. Everything in my personal pupil license export is pleasing to the eye and so I now learn i could pick in just my children by their own permit and use that to designate the newly developed texting rules!
Assigning the messaging plan to simply pupils predicated on her license
We are going to integrate our very own PowerShell demand from above that people always discover all users with the license of M65EDU_A5_STUDENT making use of Cs-TeamsMessagingPolicy demand to subsequently use it to those users.
For this we intend to need a changeable to accommodate the users we pull-in right after which pipe those consumers to the Cs-Teams order. Below is what the general command appears like: $members=get-msoluser -all | where-object
Let’s digest that command genuine quick:a€“ $people will be the varying that will house the people we’re pulling ina€“ Get-MSOLUser is actually a typical command whenever using users in Azure AD / workplace 365a€“ the audience is subsequently searching for individual stuff having an AccountSkuID match of a€?M365EDU_A5_STUDENTa€?
As soon as they runs we could subsequently simply type $members and hit submit observe the total checklist (once more you need to pipe yours to a CSV for evaluation in manufacturing). Below you will notice the original command run combined with me looking at the people during the changeable:
The audience is now ready to progress and place their, and all of different youngsters, to our brand-new no chat coverage
Before we alter the messaging coverage let us see what a student is allocated to make sure that once we continue with this change we something to compare. Inside the groups administrator heart check-out consumers during the left-hand navigation pane.
We are able to note that Al enjoys 9 international guidelines assigned and 0 per-user procedures designated. Meaning he could be merely allotted to international default policies which we could examine by hanging throughout the procedures designated book.
We could in addition examine just what chatting coverage is actually applied to a student by working the annotated following: Get-CsOnlineUser -Identity userUPN | ft DisplayName, TeamsMessagingPolicy
We can read my personal sample scholar Al doesn’t have anything indexed for texting coverage because he or she is assigned the worldwide Default:
Fast suggestion: when creating large-scale improvement via PowerShell it might be smart to break this up into batches. Do not manage just how to accomplish that on this page but seriously one thing to consider.
When you are willing to change the texting rules assignment to your people utilize the same PowerShell administrator window from prior to manage this order: foreach($representative in $users)
Let us break-down that command real fast:a€“ we’re operating a foreach and creating a short-term changeable of $member which is accustomed get user by user from your range of $membersa€“ we’re then incorporating the policy (giving) of a€?EDU No exclusive Chata€? we created past to each and every affiliate using their UserPrincipalName from our $customers listing