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 (304k 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, 2024 by Carlos (40 points)
0 votes
1 answer

We have a need to add users who have direct reports to a security group. We're currently using, If the Direct Reports' property is not empty, but this also grabs users ... has to do with the recipientTypeDetails, but I can't figure out how to implement it.

asked 5 days ago by srisingerOMF (20 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 (300 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)
3,717 questions
3,397 answers
8,592 comments
549,994 users