Closed esheldon76 closed 2 years ago
Are you referring to this line in the SearchAndRemoveItemsMailboxes.PS1 script?
$Users = Get-ExoMailbox -Filter {CustomAttribute12 -eq "Search"} -Properties CustomAttribute12 -RecipientTypeDetails UserMailbox -ResultSize Unlimited
If so, it's entirely up to you to decide what filter to use to produce the array containing the set of mailboxes for Search-Mailbox to process. To process every user mailbox, change the line to:
$Users = Get-ExoMailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited
I’ll try that. Thank you so much! Yup, just trying to have it check all employees for a calendar entry I need to remove. That way I can automatically do this when needed. Currently have an admin who sent an appointment for all staff but messed up on it and even though she deleted it, it’s still on a ton of employee calendars.
On Thu, Apr 21, 2022 at 4:54 PM Tony Redmond @.***> wrote:
Are you referring to this line in the SearchAndRemoveItemsMailboxes.PS1 script?
$Users = Get-ExoMailbox -Filter {CustomAttribute12 -eq "Search"} -Properties CustomAttribute12 -RecipientTypeDetails UserMailbox -ResultSize Unlimited
If so, it's entirely up to you to decide what filter to use to produce the array containing the set of mailboxes for Search-Mailbox to process. To process every user mailbox, change the line to:
$Users = Get-ExoMailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited
— Reply to this email directly, view it on GitHub https://github.com/12Knocksinna/Office365itpros/issues/49#issuecomment-1105797961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI2HVUN7AFVXUTPXIALRS4DVGHFAPANCNFSM5T7UNTZQ . You are receiving this because you authored the thread.Message ID: @.***>
-- Sent from my iPhone.
I tweaked the date and subject attributes, but when I run it I receive "No matching users found". I dig in and see "Customattribute12" but it doesn't point to anything. Am I missing something? Sorry, not an advanced script writer, so not sure if I need to add something on my end. I'm just hoping to find a script I can run to remove a calendar entry from all users calenders in my organization.