powershell: remove owners from list of members in o365 group

Diskutiere powershell: remove owners from list of members in o365 group im Office Forum im Bereich Microsoft Community Fragen; I'm the admin for a shool, that uses O365 for administration as well as classes. We mainly use Teams. OneNote and Email. I created teams for...
M

MSCom

Neuer Benutzer
Threadstarter
Dabei seit
20.09.2016
Beiträge
1
I'm the admin for a shool, that uses O365 for administration as well as classes. We mainly use Teams. OneNote and Email.


I created teams for each class. Each class has teachers as owners and students as members.

For every team was an O365 group created, which I can manage from the admin-page.

In the admin-page I can remove members even though they are still owners of the group.


This has 2 advantages:

  • I can send emails only to the students, withouth spamming my colleagues
  • I can share my Notebooks with the team, without sharing it with or spamming my colleagues


I tried to write a powershell script to emulate the behaviour:


#$alias is a name retrieved from csv-files.

foreach($owner in $owners)
{
Remove-UnifiedGroupLinks -Identity $alias -LinkType Members -Links $owner
}


I get an error, stating that I can't remove members which are still owners.


Is there a workaround? Am I on the wrong path completely?
 
Thema:

powershell: remove owners from list of members in o365 group

powershell: remove owners from list of members in o365 group - Ähnliche Themen

Same self-signed code signing certificate for all users on same computer ?: On my own local PC with Office 2019, I would like all accounts to use the same certificate for Office macros (Word, Excel, Access). Otherwise...
Change my ONLINE word language from german: My online office is in german, it asks if I want to change to swedish, I press yes but nothing changes. My account is set to sweden so how can I...
Cannot drag and drop anything into OneNote for Windows 10 App: Version: 16001.12827.20538.0 I am no able to drag and drop files onto OneNote pages. It doesn't matter what file type or where it's coming...
Caught in the Office 365 Free-Trial-Trap: As a 73-year-old, I was perfectly content with my Windows 7 system and MS Office, which I had been using for years. I would have gladly kept it...
Block diagram in Ecxel: Dear Microsoft Community, I have a problem regarding a block diagram in Ecxel, which I need for my bachelor thesis. I made an interview where I...

Sucheingaben

turtle creek casino

,

poker 2

,

9poker 2

,
how many casinos are in las vegas
, how many c(asinos are in las vegas, lady gaga poker face mp3, lady gaga pokLer face mp3, Fcasino royale streaming, poker game rules, margaritaville casino, margaritaville casinJo, governor of poker 2 hacked, governor of po0ker 2 hacked, casino ballroom, cfasino ballroom, is online poker legal in california, real ucasino slots, real casino slots, where is online poke1r legal, hollywood casino wv, hollywood casmino wv, poker kings, pWoker kings, resorts world casino new york city, resorts world casiZno new york city
Oben