Deleting Meeting Requests made by terminated users

前端 未结 2 1753
迷失自我
迷失自我 2021-01-17 05:11

Need to delete the meeting requests made by terminated users from all the conference rooms for multiple terminated users at a time.

below is the script which i buil

2条回答
  •  我在风中等你
    2021-01-17 05:59

    I think I can actually answer this for you! My first answer (that I can remember) on stack:)

    You should put the terminated users' usernames (or some other identifier) in a text file, then insert a new line below your line

    $count=$rooms.count

    that is

    $TerminatedUsers = Get-Content .\TerminatedUsersList.txt.

    Then add another line that is

    foreach ($User in $TerminatedUsers) {

    Then add a final closing curly brace } to the very end of your script.

    Finally, change your from:sasi OR Kalai to from:$($User)

    This will loop through each of the terminated users, and for each one of them, it will search all of the room mailboxes for their meetings.

    I hope this makes sense for you.

提交回复
热议问题