I’m working on going through a list I’ve already pulled and put into a CSV.
I essentially know the command I need to do what I want to do, but I don’t know how to start it so it knows to run through line by line.
The CSV basically looks like the below:
Basically, do something with line 1… SMBox, using SID from line 1 and the AccessRights from line 1. Then do something with line 2… SMBox2, using the SID from line 2, and the AccessRights, etc.
All the way down my list.
Remove-MailboxPermission -Identity (SMBOX1) -USER (SIDLine1) -AccessRight (WhateverTheyHave) -Confirm:$false