0 votes

I tried searching and looking through the script repo but I coun't find what I was looking for.

Is there a script I can use with "If PowerShell scripts returns true" that will tell me if a mailbox on Echange one is a Shared Mailbox or not?

If a script is not required what would I use? I want to run a scheduled job only on mailboxes that are NOT Shared Mailboxes.

Thank you,

by (1.3k points)

1 Answer

0 votes
by (288k points)

Hello,

You can use the following script in your condition:

$Context.ConditionIsMet = $Context.TargetObject.MailboxType -eq "ADM_EXCHANGE_MAILBOXTYPE_SHARED"

Related questions

0 votes
0 answers

We currently convert user mailboxes to shared mailboxes during deprovisioning process but if the user mailbox was already a shared mailbox then the script throws an error ... user mailbox. Here is the actions of the current deprovision command: Thanks!

asked Oct 1 by Carlos (40 points)
0 votes
1 answer

In the Adaxes GUI I see three forms of delegation: Send As Send on Behalf Of Mailbox Rights In the WEB GUI there are also three forms of delegation: Shared Mailbox Members Full ... Behalf Of" missing on the WEB? -- Morten A. Steien For reference GUI: WEB:

asked Jul 14, 2023 by Morten A. Steien (300 points)
0 votes
1 answer

Shared mailboxes are treated as standard users, however they really should have a separate view. I would like to request that a new view is made avaiilable for Shared ... office location, data from HR systems, windows profile, etc are not really relevant.

asked Jun 23, 2023 by i*windows (280 points)
0 votes
1 answer

Hi, is there a way through the Adaxes SDK to check all users against a specific group and determine wether or not they are part of it (must include direct and indirect ... Forrest root domain which holds the group, members of the group can be in every domain

asked Jun 30, 2014 by ijacob (960 points)
0 votes
1 answer

Good afternoon, Is there a script for adding a user to an already existing Office 365 Shared Mailbox? I want to add this script onto the onboarding rules I have added already.

asked May 7 by ocanizales (60 points)
3,538 questions
3,229 answers
8,224 comments
547,747 users