Comments on: PowerShell Script to Remove Mailbox Folder Permissions https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/ Practical Office 365 News, Tips, and Tutorials Wed, 12 Jul 2023 20:26:18 +0000 hourly 1 https://wordpress.org/?v=6.3.2 By: Luis https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-268656 Wed, 12 Jul 2023 20:26:18 +0000 https://www.practical365.com/?p=7977#comment-268656 In reply to Tony Redmond.

Thank you for the reply Tony, the list is extensive and cuts out before it reaches the end. I assume I would have to export it. I was wondering if there was some easier way but I guess not so much. I tried: Remove-MailboxFolderPermission -Identity Account@example.com:\Calendar -User *.* but it tells me the operation can’t be performed because *.* matches multiple entries, which is exactly what I want it to do.

]]>
By: Tony Redmond https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-268654 Wed, 12 Jul 2023 20:14:55 +0000 https://www.practical365.com/?p=7977#comment-268654 In reply to Luis.

Get all the entries using Get-MailboxFolderPermission -identity “user:\calendar” and put them into an array. Then loop through the array and call Remove-MailboxFolderPermission for each user?

]]>
By: Luis https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-268653 Wed, 12 Jul 2023 19:41:58 +0000 https://www.practical365.com/?p=7977#comment-268653 Hi Paul,

I have a calendar who’s ACL is full due to too many users being in it. I would like to delete all the users who have access to that calendar regardless of access level. I will then replace the users with groups. Is there a simple way to wipe all users from a calendar?

]]>
By: Charles Smith https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-234116 Mon, 29 Mar 2021 19:56:03 +0000 https://www.practical365.com/?p=7977#comment-234116 Hi

I am looking for a way to avoid users from changing the default and anonymous folder permissions from none to owner by themselves, is there a policy we can set in place to avoid users from making this on OWA so then it replicates to the outlook client, is not to remove the Default and Anonymous but to disable users ability to do this via desktop client or webmail

]]>
By: Ya Mum https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-233276 Wed, 03 Feb 2021 23:51:03 +0000 https://www.practical365.com/?p=7977#comment-233276 In reply to Janoah.

Stop smoking so much giggly bush and you wont be so paranoid

]]>
By: Ralph https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-229112 Fri, 03 Apr 2020 09:04:38 +0000 https://www.practical365.com/?p=7977#comment-229112 In reply to Peter Jonkers.

I also had that requirement – a large shared mailbox with thousands of subfolders, many of which had SIDs of previous staff in the permissions. I modified the script by removing the $user parameter from the inputs. Within the foreach loop, I added a nested loop:

$users = Get-MailboxFolderPermission -Identity $identity
Write-Host -ForegroundColor Red “Checking $identity”
foreach ($user in $users)
{
if ($user.User -match “NT User:S-1”)
{
… mostly the same as the existing script
}

I had to change $user to $user.user elsewhere in the existing script as the $user object was a different type, I guess. Hope that helps someone.

]]>
By: Jackie https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-228520 Sat, 07 Dec 2019 02:09:26 +0000 https://www.practical365.com/?p=7977#comment-228520 In reply to David.

I know this is old, but thanks a ton to both of you! This makes cleaning up dead user accounts so much easier!

]]>
By: Janoah https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-222410 Sat, 10 Aug 2019 04:38:31 +0000 https://www.practical365.com/?p=7977#comment-222410 Hi paul,
I’m concerned my former manager might be stalking me. I JUST found out he has had read-only access to my work outlook for the past 5 months that I’ve NOT been his employee. I’m in another department of our company. I feel violated. There is a request into our IT department removing his read-only access to my email which he claims “he forgot” he had. Is there a way to tell if he’s been accessing my email to see if he’s telling the truth or not?

]]>
By: Abdul K https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-168434 Tue, 06 Nov 2018 10:52:54 +0000 https://www.practical365.com/?p=7977#comment-168434 Thanks a lot! This was very useful. I couldn’t thank you enough. Another great work!

]]>
By: Paul Cunningham https://practical365.com/powershell-script-remove-permissions-exchange-mailbox/#comment-157084 Fri, 26 Jan 2018 08:44:39 +0000 https://www.practical365.com/?p=7977#comment-157084 In reply to christian.

Sorry, I only know english and don’t know how to translate the script for other languages.

]]>