Higher so now We have the name of one’s sku We have to take to track down my personal pupil user ft because all the my personal college students will be authorized with that sku. To ensure I am able to work on a fast PowerShell demand to generate a summary of new pages with that licenses. I will do so and have now they monitor in direct the newest PowerShell screen since i have only 18 users you may want to remove they so you’re able to a good CSV on your production environment.
- In this same PowerShell screen work with: get-msoluser -every | where-object
- Immediately following that runs you will want to find a list such as this:
See that You will find ‘-all’ listed in the newest command immediately after ‘get-msoluser’ though don’t use it in my own display photos; the reason being my student number are 18 however your’s get be much more. Everything in my beginner permit export looks good thus i today discover I will pick towards the merely my people because of the its permit and rehearse that so you’re able to designate all of our newly composed chatting policy!
Assigning brand new chatting coverage to only children according to its license
We will mix our very own PowerShell command from a lot more than you to definitely i regularly look for the profiles into licenses regarding M65EDU_A5_Beginner to the Cs-TeamsMessagingPolicy order so you’re able to next put it to use to the people users.
To accomplish this we will have fun with an adjustable in order to house the new profiles we present after which tubing those users towards Cs-Teams demand. Less than is exactly what the entire order ends up: $members=get-msoluser -every | where-target
Let’s break down one demand real brief:– $players is the changeable which can family the new pages we have been getting– Get-MSOLUser is actually an elementary demand when utilizing pages inside the Blue Advertising / Workplace 365– We have been next in search of representative stuff which have an enthusiastic AccountSkuID fits from “M365EDU_A5_STUDENT”
Before we replace the messaging coverage let’s see what a student is tasked to make sure huggle that whenever we continue with all of our changes i have one thing to contrast. On the Groups Administrator Cardiovascular system head to Profiles regarding the kept give navigation pane.
Once it works we can following only types of $members and you may force get into to see an entire checklist (once more you need to pipe your personal so you can an excellent CSV to own remark during the production)
We are able to observe that Al has actually 9 internationally procedures assigned and you may 0 per-associate formula assigned. This means he is simply assigned to all over the world default principles and this we can make certain by hovering across the procedures assigned text message.
Our company is today prepared to proceed and put their, and all sorts of other college students, to the brand new zero chat coverage.
We are able to along with make certain what messaging policy is actually placed on a pupil because of the running the following: Get-CsOnlineUser -Name userUPN | legs DisplayName, TeamsMessagingPolicy
We could select my personal attempt student Al doesn’t have anything indexed having Messaging Coverage just like the he or she is assigned the global Standard:
Short tip: when creating major changes through PowerShell it could be smart to-break which right up to the batches. We don’t shelter how to do that on this page however, definitely one thing to envision.
When you’re prepared to replace the chatting rules task to help you your college students use the same PowerShell administrator screen out of prior to run this command: foreach($representative when you look at the $members)
Why don’t we break down one to command genuine brief:– we have been running a great foreach and you may undertaking a temporary varying from $user that’s accustomed go user of the associate off all of our directory of $members– we have been then incorporating the policy (granting) out of “EDU Zero Individual Cam” that people created before to every member along with their UserPrincipalName out-of the $players number