High so now We have title of one’s sku We have to take discover my pupil representative ft once the the my pupils will be registered with that sku. To ensure I can work at a fast PowerShell command to generate a listing of this new profiles which have one licenses. I will do it while having it screen in direct brand new PowerShell window since i just have 18 pages but you may want to remove they so you’re able to an excellent CSV in your creation ecosystem.
- In that same PowerShell window run: get-msoluser -every | where-object
- Once one operates you will want to come across an email list in this way:
Note that You will find ‘-all’ placed in the order just after ‘get-msoluser’ even in the event do not use they in my display screen photos; this is because my student amount was 18 although not your’s may be more. All things in my personal student licenses export is pleasing to the eye therefore i today see I can pick toward merely my personal pupils by the its licenses and use one to so you’re able to assign our very own newly created chatting plan!
Assigning the new messaging rules to simply students considering their license
We will mix our very own PowerShell command of above one i familiar with come across all the users toward license regarding M65EDU_A5_Beginner on Cs-TeamsMessagingPolicy order so you’re able to upcoming use it to people users.
To do this we are going to fool around with a varying to help you family brand datovГЎnГ asexuГЎlnГ new users we present then tube those individuals pages to the Cs-Communities command. Below is really what the general command ends up: $members=get-msoluser -most of the | where-target
Why don’t we falter you to order real quick:– $members ’s the varying that may house the latest pages we are pulling in– Get-MSOLUser was a simple demand when using profiles during the Blue Post / Work environment 365– The audience is after that wanting user objects having an enthusiastic AccountSkuID matches off “M365EDU_A5_STUDENT”
Just before we replace the messaging policy let us see what a student is now tasked so that whenever we continue with our very own changes we have something you should compare. Regarding the Organizations Administrator Center go to Profiles in the kept hands routing pane.
Immediately following it works we could next only sort of $professionals and you will press get into to see an entire checklist (once again you really need to tubing your own personal to help you a beneficial CSV getting remark within the production)
We are able to see that Al has 9 worldwide formula assigned and you can 0 for each and every-member policies assigned. This means he or she is merely assigned to all over the world standard guidelines which we can verify by the hanging along side procedures assigned text.
We have been now ready to progress and place his, and all other youngsters, to your the newest zero talk coverage.
We could along with make sure what messaging policy is applied to an effective pupil because of the running the second: Get-CsOnlineUser -Label userUPN | legs DisplayName, TeamsMessagingPolicy
We are able to discover my take to beginner Al has nothing noted to own Messaging Rules because he could be assigned the global Standard:
Brief idea: when designing major change thru PowerShell it could be wise to-break it right up to your batches. We do not cover simple tips to accomplish that on this page but however one thing to envision.
When you are happy to replace the messaging rules task so you’re able to all your people make use of the same PowerShell administrator window out of ahead of focus on it demand: foreach($member in $members)
Let’s break apart one to command real brief:– our company is running an excellent foreach and you can starting a short-term adjustable out of $associate which will be always wade associate by the affiliate regarding the selection of $members– we’re up coming including the insurance policy (granting) off “EDU No Personal Chat” that individuals authored earlier every single representative along with their UserPrincipalName out of all of our $users list