Get-MSOLUser keeps a default maximum out of 500 so the all flag lets us rating the membership

Get-MSOLUser keeps a default maximum out of 500 so the all flag lets us rating the membership

High so now I have the name of your sku We need to use to acquire my scholar associate feet because most of the my students will be subscribed with that sku. To make certain I will work on a quick PowerShell demand to generate a listing of the fresh new profiles having you to licenses. I’ll do it and possess it screen directly in the latest PowerShell windows since i have only 18 profiles however you may want to beat they so you’re able to an effective CSV on your own manufacturing environment.

  1. For the reason that exact same PowerShell screen work at: get-msoluser -all the | where-target
  2. After one operates you really need to see a listing similar to this:

Observe that I’ve ‘-all’ listed in the fresh new command immediately following ‘get-msoluser’ even if do not use they inside my display images; for the reason that my scholar amount is 18 however your’s get be much more. Everything in my personal student permit export looks good so i now learn I am able to find to the just my personal youngsters from the their permit and employ one in order to designate all of our freshly authored chatting coverage!

Delegating the fresh chatting rules to only college students centered on their license

We shall merge all of our PowerShell demand out of a lot more than you to definitely i familiar airg with pick all pages toward licenses out-of M65EDU_A5_Scholar on Cs-TeamsMessagingPolicy command so you can after that apply it to the people profiles.

To accomplish this we are going to fool around with a variable so you can domestic new pages i generate following pipe those individuals pages towards the Cs-Teams command. Continue reading …